(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7740],{80750:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/name/[nmconst]",function(){return t(90662)}])},90662:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return jl},default:function(){return Ll}});var i=t(70865),a=t(52322),o=t(2784),r=t(25436),l=t(93571),s=t(82108),d=t(52504),c=t(2366),u=t(92228),m=t(19596),f=t(45103),p=t(91842),v=t(73857),g=t(87353),h=t(90551),y=t(26688),x=t(66383),T=t(14865),_=t(30382),b=t.n(_);function C(){var e=(0,u.Z)(["\n query ActiveUserFavPeople {\n predefinedList(classType: FAVORITE_ACTORS) {\n id\n }\n }\n"]);return C=function(){return e},e}var I=b()(C()),S=t(35355);function P(){var e=(0,u.Z)(["\n query IsElementInList($listId: ID!, $constId: ID!) {\n list(id: $listId) {\n areElementsInList(itemElementIds: [$constId]) {\n isElementInList\n }\n }\n }\n"]);return P=function(){return e},e}var D,N=b()(P()),E=function(e){var n=e.nameId,t=e.nameText,i=e.size,r=e.className,l=(0,v.Z)(),s=(0,h.n)(),d=(0,o.useState)(void 0),c=d[0],u=d[1],m=(0,o.useState)({isFetching:s}),p=m[0],_=m[1],b=Boolean(p.isInFavPeople),C=b?{id:"favPeople_ribbon_remove",defaultMessage:"Remove {nameText} from your favorite people"}:{id:"favPeople_ribbon_add",defaultMessage:"Add {nameText} to your favorite people"},P=function(){var e=(0,S.nu)(),n=(0,o.useState)(void 0),t=n[0],i=n[1],a=(0,x.Z)((0,S.E8)({query:I,context:{personalized:!0,serverSideCacheable:!1},pause:!e||!(0,T.getIsBrowser)()}),1)[0].data;return(0,o.useEffect)((function(){var e;a&&i(null===a||void 0===a||null===(e=a.predefinedList)||void 0===e?void 0:e.id)}),[a]),t}();(0,o.useEffect)((function(){P&&u(P)}),[P]);var D=function(e,n){var t=(0,S.nu)();return(0,x.Z)((0,S.E8)({query:N,variables:{listId:null!==e&&void 0!==e?e:"",constId:n},context:{personalized:!0,serverSideCacheable:!1},pause:!t||!e||!(0,T.getIsBrowser)()}),1)[0]}(c,n);(0,o.useEffect)((function(){var e,n,t,i;(null===D||void 0===D?void 0:D.data)&&_({isFetching:!1,isInFavPeople:Boolean(null===D||void 0===D||null===(e=D.data)||void 0===e||null===(n=e.list)||void 0===n||null===(t=n.areElementsInList)||void 0===t||null===(i=t[0])||void 0===i?void 0:i.isElementInList)})}),[null===D||void 0===D?void 0:D.data]);var E=(0,g.j8)({overrideAddPageAction:"fav-people-rib-add",overrideRemovePageAction:"fav-people-rib-delete"}),M=E.addConstToList,j=E.removeConstFromList;return(0,a.jsx)(f.Poster.WatchlistRibbon,{ariaLabel:l.formatMessage(C,{nameText:t}),className:r,iconOverrides:{inWatchlist:"favorite",notInWatchlist:"favorite-border"},inWatchlist:b,isLoading:p.isFetching,onClick:function(){s?c&&(p.isInFavPeople?((0,j.executeRemoveConstFromList)(c,n),_({isFetching:!1,isInFavPeople:!1})):((0,M.executeAddConstToList)(c,n),_({isFetching:!1,isInFavPeople:!0}))):(0,y.r)()},size:i})},M=t(79970),j=t(79678),L=t(79250);function w(){var e=(0,u.Z)(["\n place-content: center flex-start;\n align-items: center;\n display: flex;\n flex-flow: row nowrap;\n"]);return w=function(){return e},e}function k(){var e=(0,u.Z)(["\n text-align: right;\n padding-left: 0;\n padding-right: ",";\n vertical-align: middle;\n"]);return k=function(){return e},e}function A(){var e=(0,u.Z)(["\n ","\n "]);return A=function(){return e},e}function Z(){var e=(0,u.Z)(["\n display: block;\n ","\n ","\n\n & {\n line-height: 0.7rem;\n }\n"]);return Z=function(){return e},e}function O(){var e=(0,u.Z)(["\n ","\n "]);return O=function(){return e},e}function R(){var e=(0,u.Z)(["\n display: block;\n ","\n ","\n\n & {\n line-height: 0.7rem;\n }\n"]);return R=function(){return e},e}function B(){var e=(0,u.Z)(["\n padding: 0 ",";\n min-width: 7rem;\n"]);return B=function(){return e},e}function Y(){var e=(0,u.Z)(["\n ",";\n "]);return Y=function(){return e},e}function F(){var e=(0,u.Z)(["\n ",";\n "]);return F=function(){return e},e}function q(){var e=(0,u.Z)(["\n ",";\n "]);return q=function(){return e},e}function V(){var e=(0,u.Z)(["\n margin-right: ",";\n vertical-align: middle;\n ","\n"]);return V=function(){return e},e}function U(){var e=(0,u.Z)(["\n ","\n "]);return U=function(){return e},e}function z(){var e=(0,u.Z)(["\n vertical-align: middle;\n ","\n"]);return z=function(){return e},e}function G(){var e=(0,u.Z)(["\n vertical-align: middle;\n ","\n"]);return G=function(){return e},e}function H(){var e=(0,u.Z)(["\n ","\n "]);return H=function(){return e},e}function Q(){var e=(0,u.Z)(["\n vertical-align: middle;\n ","\n"]);return Q=function(){return e},e}!function(e){e.Logo="starmeter-logo",e.Content="starmeter-content",e.ChangeDirection="starmeter-change-direction",e.CurrentRank="starmeter-current-rank",e.Difference="starmeter-difference"}(D||(D={}));var $=function(e){var n=(0,v.Z)(),t=e.changeDifference,i=e.changeDirection,o=e.className,r=e.currentRank,l=e.onColor,s=void 0===l?"baseAlt":l,d="https://pro.imdb.com/name/".concat(e.nmconst,"/?rf=cons_nm_meter&ref_=cons_nm_meter");return(0,a.jsx)("article",{className:o,children:(0,a.jsxs)(W,{children:[(0,a.jsxs)(J,{className:D.Logo,href:d,children:[(0,a.jsx)(K,{onColor:s,children:"IMDbPro"}),(0,a.jsx)(X,{onColor:s,children:"Starmeter"})]}),(0,a.jsxs)(ee,{className:D.Content,href:d,children:[i&&(0,a.jsx)(ie,{className:D.ChangeDirection,name:ne(i)}),(0,a.jsx)(oe,{onColor:s,className:D.CurrentRank,children:ae(n,r)}),i&&["UP","DOWN"].includes(i)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(re,{name:"arrow-drop-".concat(i.toLowerCase())}),t&&(0,a.jsx)(le,{onColor:s,className:D.Difference,children:t})]})]})]})})},W=m.default.div.withConfig({componentId:"sc-47b2ecb0-0"})(w()),J=(0,m.default)(f.TextButton).withConfig({componentId:"sc-47b2ecb0-1"})(k(),p.spacing.xxs),K=m.default.span.withConfig({componentId:"sc-47b2ecb0-2"})(Z(),(function(e){return(0,m.css)(A(),(0,p.setPropertyToColorVar)("color","ipt-on-".concat(e.onColor,"-textSecondary-color")))}),(0,p.setTypographyType)("copyright")),X=m.default.span.withConfig({componentId:"sc-47b2ecb0-3"})(R(),(function(e){return(0,m.css)(O(),(0,p.setPropertyToColorVar)("color","ipt-on-".concat(e.onColor,"-textSecondary-color")))}),(0,p.setTypographyType)("overline")),ee=(0,m.default)(f.TextButton).withConfig({componentId:"sc-47b2ecb0-4"})(B(),p.spacing.xxs);function ne(e){switch(e){case"UP":return"popularity-up";case"DOWN":return"popularity-down";default:return"popularity-neutral"}}function te(e){switch(e){case"arrow-drop-up":case"popularity-up":return(0,m.css)(Y(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-accent4-color"));case"arrow-drop-down":case"popularity-down":return(0,m.css)(F(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-accent3-color"));default:return(0,m.css)(q(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"))}}var ie=(0,m.default)(f.Icon).withConfig({componentId:"sc-47b2ecb0-5"})(V(),p.spacing.xxs,(function(e){return te(e.name)}));function ae(e,n){return n?n<=100?n.toString():n<=500?e.formatMessage({id:"common_name_starmeter_currentRank_top500",defaultMessage:"Top 500"}):n<=5e3?e.formatMessage({id:"common_name_starmeter_currentRank_top5000",defaultMessage:"Top 5,000"}):n<=1e4?e.formatMessage({id:"common_name_starmeter_currentRank_top10000",defaultMessage:"Top 10,000"}):e.formatMessage({id:"common_name_starmeter_seeRank",defaultMessage:"See rank"}):e.formatMessage({id:"common_name_starmeter_seeRank",defaultMessage:"See rank"})}var oe=m.default.span.withConfig({componentId:"sc-47b2ecb0-6"})(z(),(function(e){return(0,m.css)(U(),(0,p.setPropertyToColorVar)("color","ipt-on-".concat(e.onColor,"-color")))})),re=(0,m.default)(f.Icon).withConfig({componentId:"sc-47b2ecb0-7"})(G(),(function(e){return te(e.name)})),le=m.default.span.withConfig({componentId:"sc-47b2ecb0-8"})(Q(),(function(e){return(0,m.css)(H(),(0,p.setPropertyToColorVar)("color","ipt-on-".concat(e.onColor,"-textSecondary-color")))})),se=t(57531),de=t(82292),ce=t(22808);function ue(){var e=(0,u.Z)(["\n margin-top: ",";\n border-top: 1px solid ",";\n"]);return ue=function(){return e},e}function me(){var e=(0,u.Z)(["\n margin-top: ",";\n display: flex;\n\n &&& {\n border-bottom: none;\n }\n"]);return me=function(){return e},e}var fe=function(e){var n=e.className,t=e.nameProUpsellActionItemsList;if(0===t.length)return(0,a.jsx)(a.Fragment,{});if(1===t.length){var i=t[0].href,o=t[0].message;return(0,a.jsx)(pe,{className:n,children:(0,a.jsx)(ce.e,{href:i,message:o,hideLogo:!0,preIcon:"phone"})})}var r=t[0].href,l=t[0].message,s=t.slice(1).map((function(e){return{text:e.message,href:e.href}}));return(0,a.jsx)(f.MetaDataList,{className:n,children:(0,a.jsx)(ve,{labelTitle:l,listContent:s,labelLink:r,labelLinkType:"internal"})})},pe=(0,m.default)(f.MetaDataListItem).withConfig({componentId:"sc-dda78256-0"})(ue(),p.spacing.s,(0,p.getColorVar)("ipt-baseAlt-border-color")),ve=(0,m.default)(f.MetaDataListItem).withConfig({componentId:"sc-dda78256-1"})(me(),p.spacing.s),ge=t(93130);var he=t(87206),ye=t(50911),xe=t(96485),Te=t(98621),_e=t(53011),be=t(69831);t(77161);var Ce=t(96670),Ie=t(83446),Se=t(13813);function Pe(){var e=(0,u.Z)(["\n margin-bottom: ",";\n"]);return Pe=function(){return e},e}var De="cons_nm_chgpimage",Ne=function(e){var n,t,o,r=(0,v.Z)(),l=(0,Se.y)().pageConst,d=(0,Te.hg)({weblabID:c.lh.IMDB_NAME_PAGE_HERO_CTA_SUBSCRIPTION_AWARE_821864,treatments:{T1:!0}}),u=(0,Te.hg)({weblabID:c.lh.IMDB_NAME_PAGE_HERO_CTA_DEFAULT_VALUE_824420,treatments:{T1:!0}})||d,m=null===(n=(0,s.AD)().nameCallToAction)||void 0===n||null===(t=n.callToAction)||void 0===t?void 0:t.nameImagesReels,f=r.formatMessage({id:"name_main_pro_image_upsell_1",defaultMessage:"Add photos, demo reels"}),p="https://pro.imdb.com/name/".concat(l,"?ref_=").concat(De,"&rf=").concat(De),g=null===(o=null===m||void 0===m?void 0:m.action.label)||void 0===o?void 0:o.text,h=null===m||void 0===m?void 0:m.action.url,y=u?g:f,x=u?h:p;return x&&y?(0,a.jsx)(Ee,(0,Ce.Z)((0,i.Z)({postIcon:"launch",width:"full-width",height:"large",alignContent:"left",href:x},e),{children:y})):(0,a.jsx)(a.Fragment,{})},Ee=(0,m.default)(f.Button).withConfig({componentId:"sc-1a1a230-0"})(Pe(),p.spacing.xs),Me=t(31619);function je(){var e=(0,u.Z)(["\n query NameClaimPage($id: ID!) {\n name(id: $id) {\n isClaimed\n }\n }\n"]);return je=function(){return e},e}function Le(){var e=(0,u.Z)(["\n margin-top: ",";\n\n "," {\n margin-top: ",";\n }\n"]);return Le=function(){return e},e}function we(){var e=(0,u.Z)(["\n ","\n"]);return we=function(){return e},e}var ke=b()(je()),Ae={id:"name_main_claim_page_cta",defaultMessage:"Claim this page on IMDbPro"},Ze={id:"name_main_claim_page_question",defaultMessage:"Are you {name}?"},Oe={id:"name_main_claim_page_join_pro",defaultMessage:"Join IMDbPro to edit this information for free."},Re={id:"common_learnMore",defaultMessage:"Learn more"},Be=function(e){var n,t,i=(0,Me.N)(Ae),o=(0,Me.N)(Ze,{name:e.nameText.text}),r=(0,Me.N)(Oe),l=(0,Me.N)(Re);return!1!==(null===(n=(0,x.Z)((0,S.E8)({query:ke,variables:{id:e.id},context:{personalized:!0,serverSideCacheable:!1,clientSideBatch:!0}}),1)[0].data)||void 0===n||null===(t=n.name)||void 0===t?void 0:t.isClaimed)?null:(0,a.jsxs)(Ye,{children:[(0,a.jsx)(Fe,{children:o}),(0,a.jsx)(f.Button,{width:"full-width",height:"large",postIcon:"launch",alignContent:"left",href:"https://pro.imdb.com",children:i}),(0,a.jsx)(Fe,{children:r}),(0,a.jsx)(f.TextLink,{href:"https://help.imdb.com/imdbpro",text:l})]})},Ye=m.default.div.withConfig({componentId:"sc-9a322161-0"})(Le(),p.spacing.xs,p.mediaQueries.breakpoints.above.m,p.spacing.s),Fe=m.default.div.withConfig({componentId:"sc-9a322161-1"})(we(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"));function qe(){var e=(0,u.Z)(["\n max-width: 25rem;\n margin-top: ",";\n\n "," {\n margin-top: ",";\n }\n"]);return qe=function(){return e},e}var Ve,Ue="nm-ov-atl-sm",ze="nm-ov-chgpimage",Ge=function(e){var n,t=(0,Te.hg)({weblabID:c.lh.IMDB_CLAIM_PAGE_572207,treatments:{T1:!0}}),r=(0,v.Z)(),l=(0,o.useState)(!1),s=l[0],d=l[1],u=!!e.primaryImage,m=(0,Ce.Z)((0,i.Z)({},{width:"full-width",height:"large",alignContent:"left"}),{preIcon:"add",onClick:function(){d(!0)},children:r.formatMessage({id:"common_add_to_list_buttonText",defaultMessage:"Add to list"})});return(0,a.jsxs)(He,{children:[u&&(0,a.jsx)(f.Button,(0,Ce.Z)((0,i.Z)({},m),{"data-testid":Ue})),t&&(0,a.jsx)(Be,(0,i.Z)({},e)),!u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ne,{"data-testid":ze}),(0,a.jsx)(f.SecondaryButton,(0,i.Z)({"data-testid":Ue,onColor:"textPrimary"},m))]}),(0,a.jsx)(Ie.Y,{primaryImage:e.primaryImage,primaryText:null===(n=e.nameText)||void 0===n?void 0:n.text,imageType:"name",isOpen:s,onClose:function(){d(!1)},refMarker:{prefix:"nm_ov"}})]})},He=m.default.div.withConfig({componentId:"sc-4a9c2895-0"})(qe(),p.spacing.xs,p.mediaQueries.breakpoints.above.m,p.spacing.s),Qe=t(17004),$e=t(45632),We=t(91793);function Je(){var e=(0,u.Z)(["\n // overrides background to match possiblity of image background in hero\n // overrides position based on line clamp and size of child element (could maybe go in PLAID?)\n &&& .bio-overflowtext-overlay {\n background: none;\n bottom: 0;\n top: initial;\n width: calc(100% + ",");\n pointer-events: none;\n\n "," {\n bottom: -",";\n }\n }\n"]);return Je=function(){return e},e}function Ke(){var e=(0,u.Z)(["\n && {\n ","\n padding-right: ",";\n }\n\n "," {\n ","\n }\n"]);return Ke=function(){return e},e}!function(e){e.ContributeLink="bio-contribute-link",e.Content="bio-content"}(Ve||(Ve={}));var Xe,en="nm_ov_bio_sm",nn=function(e){var n,t=(0,v.Z)();return e.content?(0,a.jsx)($e.b,{dataType:"nameHeroBio",children:(0,a.jsx)(tn,{className:e.className,height:"short",bgContext:"pageSection",href:"/name/".concat(e.id,"/bio?ref_=").concat(en),overlayClassName:"bio-overflowtext-overlay","data-testid":Ve.Content,clickAriaLabel:t.formatMessage({id:"common_ariaLabels_seeMore",defaultMessage:"See more"}),disableOverlayHide:!0,children:(0,a.jsx)(an,{children:(0,a.jsx)(Qe.T,{translatedText:e.translatedContent,originalText:e.content,refMarker:en,children:(0,a.jsx)(f.HTMLContent,{html:null!==(n=e.translatedContent)&&void 0!==n?n:e.content,display:"inline"})})})})}):(0,a.jsx)(f.TextLink,{"data-testid":Ve.ContributeLink,href:"https://contribute.imdb.com/updates?update=".concat(e.id,"&ref_=nm_ov_edt"),text:t.formatMessage({id:"common_name_generalContribution_cta",defaultMessage:"Help contribute to IMDb. Add a bio, trivia, and more."})})},tn=(0,m.default)(f.OverflowText).withConfig({componentId:"sc-642001b7-0"})(Je(),p.spacing.xs,p.mediaQueries.breakpoints.below.s,p.spacing.xxs),an=m.default.div.withConfig({componentId:"sc-642001b7-1"})(Ke(),(0,We.S)(5),p.spacing.xs,p.mediaQueries.breakpoints.below.s,(0,p.setTypographyType)("bodySmall"));function on(){var e=(0,u.Z)(["\n ",";\n\n "," {\n ","\n }\n"]);return on=function(){return e},e}function rn(){var e=(0,u.Z)(["\n display: flex;\n flex-direction: row;\n\n "," {\n flex-direction: column;\n }\n"]);return rn=function(){return e},e}function ln(){var e=(0,u.Z)(["\n &:first-of-type {\n font-weight: bold;\n margin-right: ",";\n }\n"]);return ln=function(){return e},e}function sn(){var e=(0,u.Z)(["\n ","\n margin-left: ",";\n"]);return sn=function(){return e},e}!function(e){e.Section="birth-and-death-section",e.BirthDate="birth-and-death-birthdate",e.DeathDate="birth-and-death-deathdate",e.DeathAge="birth-and-death-death-age"}(Xe||(Xe={}));var dn=function(e){var n=e.birthDateDisplay,t=e.deathDateDisplay,i=e.age,o=e.className,r=(0,v.Z)();return n||t?(0,a.jsxs)(cn,{"data-testid":Xe.Section,className:o,children:[n&&(0,a.jsxs)(un,{"data-testid":Xe.BirthDate,children:[(0,a.jsx)(mn,{children:r.formatMessage({id:"common_name_born",defaultMessage:"Born"})}),(0,a.jsx)(mn,{children:n})]}),t&&(0,a.jsxs)(un,{"data-testid":Xe.DeathDate,children:[(0,a.jsx)(mn,{children:r.formatMessage({id:"common_name_died",defaultMessage:"Died"})}),(0,a.jsxs)(mn,{children:[t,i&&(0,a.jsx)(fn,{"data-testid":Xe.DeathAge,children:r.formatMessage({id:"common_name_age_meta",defaultMessage:"({age})"},{age:i})})]})]})]}):null},cn=m.default.aside.withConfig({componentId:"sc-59a43f1c-0"})(on(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color"),p.mediaQueries.breakpoints.below.s,(0,p.setTypographyType)("bodySmall")),un=m.default.div.withConfig({componentId:"sc-59a43f1c-1"})(rn(),p.mediaQueries.breakpoints.below.xs),mn=m.default.span.withConfig({componentId:"sc-59a43f1c-2"})(ln(),p.spacing.xs),fn=m.default.span.withConfig({componentId:"sc-59a43f1c-3"})(sn(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"),p.spacing.xs),pn=t(59759),vn=t(85292),gn=t(97537);function hn(){var e=(0,u.Z)(["\n ","\n fragment NameMainHero_Video on Name {\n id\n videos(first: 0, filter: { maturityLevel: INCLUDE_MATURE }) {\n total\n }\n primaryVideos(first: 1) {\n edges {\n node {\n ...VideoSlateRootVideo\n previewURLs {\n displayName {\n value\n language\n }\n videoMimeType\n videoDefinition\n url\n }\n primaryTitle {\n originalTitleText {\n text\n }\n titleText {\n text\n }\n releaseYear {\n year\n endYear\n }\n titleType {\n canHaveEpisodes\n }\n }\n }\n }\n }\n }\n"]);return hn=function(){return e},e}var yn="name_main_slate",xn=(b()(hn(),pn.Wg),function(e){var n,t,i=e.primaryVideos,o=e.id,r=null===i||void 0===i||null===(n=i.edges)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.node;return r?(0,a.jsx)(vn.$0,{id:o,primaryVideo:r,containerTestId:"TEST_IDS.SLATE_VIDEO_CONTAINER",locationRefMarker:gn.fP.NAME_START,wrapperComponentOverrides:{"data-testid":yn},forceInlinePlaylistOverlay:!0}):null});function Tn(){var e=(0,u.Z)(["\n min-height: 3rem;\n "," {\n min-height: 4rem;\n }\n"]);return Tn=function(){return e},e}function _n(){var e=(0,u.Z)(["\n margin-top: ",";\n "]);return _n=function(){return e},e}function bn(){var e=(0,u.Z)(["\n "," {\n margin-bottom: ",";\n }\n "]);return bn=function(){return e},e}function Cn(){var e=(0,u.Z)(["\n ","\n\n ","\n"]);return Cn=function(){return e},e}function In(){var e=(0,u.Z)(["\n display: block;\n\n "," {\n margin-top: ",";\n }\n\n "," {\n display: none;\n }\n"]);return In=function(){return e},e}function Sn(){var e=(0,u.Z)(["\n display: none;\n "," {\n display: block;\n }\n ."," {\n font-size: 1.2rem;\n }\n"]);return Sn=function(){return e},e}function Pn(){var e=(0,u.Z)(["\n display: block;\n margin-top: ",";\n\n "," {\n display: none;\n }\n"]);return Pn=function(){return e},e}function Dn(){var e=(0,u.Z)(["\n display: none;\n margin-top: ",";\n\n "," {\n display: block;\n }\n\n "," {\n margin-top: 0;\n }\n"]);return Dn=function(){return e},e}function Nn(){var e=(0,u.Z)(["\n display: none;\n "," {\n display: block;\n }\n"]);return Nn=function(){return e},e}function En(){var e=(0,u.Z)(["\n display: block;\n "," {\n display: none;\n }\n"]);return En=function(){return e},e}var Mn=function(e){var n,t,o,r,l,s,d,u,m,p,v,g,h,y,x,T,_=(0,Te.hg)({weblabID:c.lh.IMDB_FAV_PEOPLE_780856,treatments:{T1:!0}}),b=(0,xe.Gs)(e.primaryImage,(null===(n=e.primaryImage)||void 0===n||null===(t=n.caption)||void 0===t?void 0:t.plainText)||"image"),C=void 0,I=void 0;if(b){var S,P,D,N,w,k,A;C=function(){var n,t;return(0,a.jsx)(f.Poster,{dynamicWidth:!0,imageProps:{imageModel:b,imageType:"name",loading:"eager"},href:"/name/".concat(e.id,"/mediaviewer/").concat(null===(n=e.primaryImage)||void 0===n?void 0:n.id,"/?ref_=nm_ov_ph"),ariaLabel:b.caption,children:_?(0,a.jsx)(E,{nameId:e.id,nameText:null!==(A=null===(t=e.nameText)||void 0===t?void 0:t.text)&&void 0!==A?A:"",size:"l"}):void 0})};var Z,O=(null===(S=e.images)||void 0===S||null===(P=S.edges)||void 0===P?void 0:P.length)&&(null===(D=e.images)||void 0===D||null===(N=D.edges)||void 0===N?void 0:N.length)>0;I={imageModel:b,totalCount:null!==(Z=null===(w=e.images)||void 0===w?void 0:w.total)&&void 0!==Z?Z:0,galleryImageConst:O?null===(k=e.images)||void 0===k?void 0:k.edges[0].node.id:void 0}}var R,B,Y=void 0,F=(0,_e.O)(e),q=(0,se.Ok)().adSlotsInfo.hasPremiumAd;!q&&F&&(Y={imageModel:F,totalCount:null!==(B=null===(R=e.videos)||void 0===R?void 0:R.total)&&void 0!==B?B:0});var V,U,z,G=!(V=e.deathStatus)||V===ge.KX.Alive,H=F&&!b&&G,Q=!F&&b&&G||F&&b&&G,$=!F&&!b&&G,W={nmconst:e.id,currentRank:null===(o=e.meterRanking)||void 0===o?void 0:o.currentRank,changeDirection:null===(r=e.meterRanking)||void 0===r||null===(l=r.rankChange)||void 0===l?void 0:l.changeDirection,changeDifference:null===(s=e.meterRanking)||void 0===s||null===(d=s.rankChange)||void 0===d?void 0:d.difference},J={birthDateDisplay:null!==(U=null===(u=e.birthDate)||void 0===u?void 0:u.displayableProperty.value.plainText)&&void 0!==U?U:"",deathDateDisplay:null!==(z=null===(m=e.deathDate)||void 0===m?void 0:m.displayableProperty.value.plainText)&&void 0!==z?z:"",age:function(e,n){if(e&&n){var t=e.year,i=e.month,a=e.day;if(!e.isBCE&&t&&i&&a){var o=n.year,r=n.month,l=n.day;if(o&&r&&l){var s=new Date(t,i-1,a),d=new Date(o,r-1,l);if(!(d1?"Nicknames":"Nickname"},{numNicknames:i}),r=(n||[]).map((function(e){return{text:e}}));return(0,a.jsx)(Ht.o,{cardTitle:o,expandActionLogger:t,testId:"name-dyk-nickname",listContent:r,refMarker:Vt.Nickname})};function Xt(){var e=(0,u.Z)(['\n fragment NameDYKQuotes on Name {\n quotesTotal: quotes(first: 0) {\n total\n }\n quotes(first: 1) {\n edges {\n node {\n displayableArticle {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n experimental_translatedDisplayableArticle @include(if: $isAutoTranslationEnabled) {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n }\n }\n }\n }\n']);return Xt=function(){return e},e}var ei="nm_dyk_qu",ni="ref_=".concat(ei),ti=b()(Xt(),ni,ni),ii=function(e){var n=e.nameId,t=e.quoteData,i=e.translatedQuoteData,o=(0,Qt.q)(qt.ShowOverflowContent,$t.qB.ACTION_ONLY,Vt.Quotes),r=(0,Me.N)({id:"common_name_personal_quote",defaultMessage:"Quotes"}),l="/name/".concat(n,"/quotes/?").concat(ni);return(0,a.jsx)(Ht.o,{cardTitle:r,expandActionLogger:o,href:l,testId:"name-dyk-quote",text:t,translatedText:i,feedbackDataType:"nameQuote",refMarker:ei})};function ai(){var e=(0,u.Z)(["\n padding-right: 0;\n"]);return ai=function(){return e},e}function oi(){var e=(0,u.Z)(["\n text-align: center;\n"]);return oi=function(){return e},e}var ri=function(e){var n=e.cardTitle,t=e.onCollapse,r=e.display,l=e.onExpand,s=e.fetchAllQuery,d=e.items,c=e.testId,u=e.stackedListItem,m=e.className,p=(0,Se.y)().pageConst,v=(0,o.useState)({items:d,hasFetched:!1,issueRequest:!1}),g=v[0],h=v[1],y=(0,x.Z)((0,S.E8)({context:{serverSideCacheable:!0,personalized:!1},query:s.query,variables:{const:p,totalToFetch:s.totalToFetch,showOriginalTitleText:!!s.useOriginalTitleText,isAutoTranslationEnabled:!!s.isAutoTranslationEnabled},pause:!g.issueRequest}),1)[0],T=y.data,_=y.error,b=y.fetching,C=(0,Me.N)({id:"dyk_retry_full_fetch",defaultMessage:"Please try again"}),I=(0,a.jsx)(si,{className:"expandable-dyk-error",onClick:function(){h((0,Ce.Z)((0,i.Z)({},g),{issueRequest:!0}))},children:(0,a.jsx)(f.HTMLContent,{html:"".concat(C,"")})}),P=(0,Me.N)({id:"dyk_expand_section",defaultMessage:"Expand section"});(0,o.useEffect)((function(){if(T){var e,n=null!==(e=null===s||void 0===s?void 0:s.transform(T,s.useOriginalTitleText))&&void 0!==e?e:[];h({items:null!==n&&void 0!==n?n:g.items,hasFetched:!0,issueRequest:!1})}else if(_){var t=g.items[0]?[g.items[0],I]:[I];h({items:t,hasFetched:!1,issueRequest:!1})}}),[T,_]);var D=(0,o.useState)(!1),N=D[0],E=D[1];return(0,a.jsx)(li,{topPadding:"none",bottomPadding:"none",borderType:"line",children:(0,a.jsx)(f.MetaDataList,{dividers:"none",children:(0,a.jsx)(f.ExpandableMetaDataListItem,{"data-testid":c,display:N?void 0:r,expanded:N,isLoading:b,labelLinkAriaLabel:P,labelTitle:n,listContent:g.items,onListItemClick:function(e){h((0,Ce.Z)((0,i.Z)({},g),{issueRequest:!0})),N?t():l(),E(!N)},stackedListItem:u,className:m})})})},li=(0,m.default)(f.ListCard).withConfig({componentId:"sc-b4d67b33-0"})(ai()),si=m.default.p.withConfig({componentId:"sc-b4d67b33-1"})(oi()),di=t(89254);function ci(){var e=(0,u.Z)(["\n fragment NameDYKSalaries on Name {\n titleSalariesTotal: titleSalaries(first: 0) {\n total\n }\n titleSalaries(first: 1) {\n edges {\n node {\n title {\n id\n titleText {\n text\n }\n originalTitleText {\n text\n }\n releaseYear {\n year\n }\n }\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n }\n"]);return ci=function(){return e},e}function ui(){var e=(0,u.Z)(["\n query AllNameTitleSalaries($const: ID!, $totalToFetch: Int!) {\n name(id: $const) {\n titleSalaries(first: $totalToFetch) {\n edges {\n node {\n title {\n id\n titleText {\n text\n }\n originalTitleText {\n text\n }\n releaseYear {\n year\n }\n }\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n }\n }\n"]);return ui=function(){return e},e}function mi(){var e=(0,u.Z)(["\n .name-title-salary-link {\n vertical-align: bottom;\n width: fit-content;\n }\n"]);return mi=function(){return e},e}function fi(){var e=(0,u.Z)(["\n ",";\n"]);return fi=function(){return e},e}function pi(){var e=(0,u.Z)(["\n .name-title-salary-value {\n display: block;\n margin-bottom: 4px;\n }\n"]);return pi=function(){return e},e}var vi="nm_dyk_sal",gi="ref_=".concat(vi),hi=b()(ci()),yi=b()(ui()),xi=function(e){var n,t=e.salariesData,i=e.totalSalaries,o=i>1,r=(0,Qt.q)(o?qt.ExpandOverflowContent:qt.ShowOverflowContent,$t.qB.ACTION_ONLY,Vt.Salaries),l=(0,Qt.q)(qt.CollapseOverflowContent,$t.qB.ACTION_ONLY,Vt.Salaries),s=!!(null===(n=(0,Fn.B)().context.sidecar)||void 0===n?void 0:n.localizationResponse.isOriginalTitlePreferenceSet),d=(0,Me.N)({id:"common_name_salaries",defaultMessage:o?"Salaries":"Salary"},{totalSalaries:i}),c=bi(t,s,0),u=c?[c]:[];return o?(0,a.jsx)(ri,{cardTitle:d,onCollapse:l,display:"two-lines",onExpand:r,fetchAllQuery:{query:yi,totalToFetch:i,transform:function(e,n){return _i(e,n)},useOriginalTitleText:s},items:u,testId:"name-dyk-salaries",stackedListItem:!0}):(0,a.jsx)(Ht.Z,{cardTitle:d,expandActionLogger:r,testId:"name-dyk-salaries",listContent:u,refMarker:vi})},Ti=function(e){var n,t,i,a,o,r,l,s,d,c,u,m,f,p,v,g,h,y,x;return{title:{id:null!==(v=null===e||void 0===e||null===(n=e.node)||void 0===n||null===(t=n.title)||void 0===t?void 0:t.id)&&void 0!==v?v:void 0,titleText:null!==(g=null===e||void 0===e||null===(i=e.node)||void 0===i||null===(a=i.title)||void 0===a||null===(o=a.titleText)||void 0===o?void 0:o.text)&&void 0!==g?g:void 0,originalTitleText:null!==(h=null===e||void 0===e||null===(r=e.node)||void 0===r||null===(l=r.title)||void 0===l||null===(s=l.originalTitleText)||void 0===s?void 0:s.text)&&void 0!==h?h:void 0,releaseYear:null!==(y=null===e||void 0===e||null===(d=e.node)||void 0===d||null===(c=d.title)||void 0===c||null===(u=c.releaseYear)||void 0===u?void 0:u.year)&&void 0!==y?y:void 0},salary:null!==(x=null===e||void 0===e||null===(m=e.node)||void 0===m||null===(f=m.displayableProperty)||void 0===f||null===(p=f.value)||void 0===p?void 0:p.plainText)&&void 0!==x?x:void 0}},_i=function(e,n){var t,i,a,o;return null!==(o=null===e||void 0===e||null===(t=e.name)||void 0===t||null===(i=t.titleSalaries)||void 0===i||null===(a=i.edges)||void 0===a?void 0:a.map((function(e,t){return bi(Ti(e),n,t)})))&&void 0!==o?o:[]},bi=function(e,n,t){var i,o;if(!e)return null;var r={sidecar:{localizationResponse:{isOriginalTitlePreferenceSet:n}}},l=(0,di.L)(r,e.title.originalTitleText,e.title.titleText),s=null===(i=e.title)||void 0===i?void 0:i.id,d=null===(o=e.title)||void 0===o?void 0:o.releaseYear,c="/title/".concat(s,"/?").concat(gi),u=e.salary,m=(0,a.jsxs)(Ci,{children:[(0,a.jsx)(f.HTMLContent,{className:"name-title-salary-link",html:"").concat(l,"")}),d&&(0,a.jsxs)(Ii,{"data-testid":"sal-".concat(t),children:[" ","(",d,")"]})]}),p=(0,a.jsx)("span",{className:"name-title-salary-value",children:u});return(0,a.jsxs)(Si,{children:[m,p]})},Ci=m.default.div.withConfig({componentId:"sc-7410ece3-0"})(mi()),Ii=m.default.span.withConfig({componentId:"sc-7410ece3-1"})(fi(),(0,p.setPropertyToColorVar)("color","ipt-on-base-textSecondary-color")),Si=m.default.div.withConfig({componentId:"sc-7410ece3-2"})(pi()),Pi=t(72779),Di=t.n(Pi);function Ni(){var e=(0,u.Z)(['\n fragment NameDYKTrademarks on Name {\n trademarksTotal: trademarks(first: 0) {\n total\n }\n trademarks(first: 1) {\n edges {\n node {\n displayableArticle {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n experimental_translatedDisplayableArticle @include(if: $isAutoTranslationEnabled) {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n }\n }\n }\n }\n']);return Ni=function(){return e},e}function Ei(){var e=(0,u.Z)(['\n query AllNameTrademarks(\n $const: ID!\n $totalToFetch: Int!\n $originalTitleText: Boolean\n $isAutoTranslationEnabled: Boolean!\n ) {\n name(id: $const) {\n trademarks(first: $totalToFetch) {\n edges {\n node {\n displayableArticle {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n experimental_translatedDisplayableArticle @include(if: $isAutoTranslationEnabled) {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n } \n }\n }\n }\n }\n }\n']);return Ei=function(){return e},e}function Mi(){var e=(0,u.Z)(["\n &.top-margin {\n margin-top: 0.5rem;\n }\n .minimized & {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n"]);return Mi=function(){return e},e}var ji="nm_dyk_tm",Li="ref_=".concat(ji),wi=b()(Ni(),Li,Li),ki=b()(Ei(),Li,Li),Ai=function(e){var n,t,i=e.trademarksData,r=e.translatedTrademarksData,l=e.totalTrademarks,s=l>1,d=(0,Qt.q)(s?qt.ExpandOverflowContent:qt.ShowOverflowContent,$t.qB.ACTION_ONLY,Vt.Trademarks),c=(0,Qt.q)(qt.CollapseOverflowContent,$t.qB.ACTION_ONLY,Vt.Trademarks),u=(0,o.useState)(!1),m=u[0],f=u[1],p=(0,Me.N)({id:"common_name_trademark",defaultMessage:s?"Trademarks":"Trademark"},{totalTrademarks:l}),v=i?[Oi(!0,i,r)]:[],g=(0,Fn.B)().context,h=!!(null===(n=g.sidecar)||void 0===n?void 0:n.localizationResponse.isOriginalTitlePreferenceSet),y=!!(null===(t=g.sidecar)||void 0===t?void 0:t.localizationResponse.isAutoTranslationEnabled);return(0,a.jsx)($e.b,{dataType:"nameTrademark",children:s?(0,a.jsx)(ri,{cardTitle:p,onCollapse:function(){f(!1),c()},onExpand:function(){f(!0),d()},fetchAllQuery:{query:ki,useOriginalTitleText:h,isAutoTranslationEnabled:y,totalToFetch:l,transform:function(e){return Zi(e)}},items:v,testId:"name-dyk-trademarks",stackedListItem:!0,className:Di()({minimized:!m})}):(0,a.jsx)(Ht.Z,{cardTitle:p,expandActionLogger:d,testId:"name-dyk-trademarks",text:i,translatedText:r,feedbackDataType:"nameTrademark",refMarker:ji})})},Zi=function(e){var n,t,i,a;return null!==(a=null===e||void 0===e||null===(n=e.name)||void 0===n||null===(t=n.trademarks)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.map((function(e,n){var t,i,a,o,r,l;return Oi(0===n,null===(t=e.node)||void 0===t||null===(i=t.displayableArticle)||void 0===i||null===(a=i.body)||void 0===a?void 0:a.plaidHtml,null===(o=e.node)||void 0===o||null===(r=o.experimental_translatedDisplayableArticle)||void 0===r||null===(l=r.body)||void 0===l?void 0:l.plaidHtml)})))&&void 0!==a?a:[]},Oi=function(e,n,t){var i;return(0,a.jsx)(Ri,{className:Di()({"top-margin":!e}),children:(0,a.jsx)(Qe.T,{translatedText:t,originalText:n,refMarker:ji,children:(0,a.jsx)(f.HTMLContent,{html:null!==(i=null!==t&&void 0!==t?t:n)&&void 0!==i?i:"",display:"inline"})})})},Ri=m.default.div.withConfig({componentId:"sc-1804fb24-0"})(Mi());function Bi(){var e=(0,u.Z)(['\n fragment NameDYKTrivia on Name {\n triviaTotal: trivia(first: 0) {\n total\n }\n trivia(first: 1) {\n edges {\n node {\n displayableArticle {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n experimental_translatedDisplayableArticle @include(if: $isAutoTranslationEnabled) {\n body {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n }\n }\n }\n }\n']);return Bi=function(){return e},e}var Yi="nm_dyk_trv",Fi="ref_=".concat(Yi),qi=b()(Bi(),Fi,Fi),Vi=function(e){var n=e.nameId,t=e.triviaData,i=e.translatedTriviaData,o=(0,Qt.q)(qt.ShowOverflowContent,$t.qB.ACTION_ONLY,Vt.Trivia),r=(0,Me.N)({id:"common_trivia",defaultMessage:"Trivia"}),l="/name/".concat(n,"/trivia/?").concat(Fi);return(0,a.jsx)(Ht.o,{cardTitle:r,expandActionLogger:o,href:l,testId:"name-dyk-trivia",text:t,translatedText:i,feedbackDataType:"nameTrivia",refMarker:Yi})},Ui=t(1577),zi=function(e){var n=e.data,t=n.hasTrivia,i=n.hasQuotes,o=n.hasNickname,r=n.nameId,l=n.nicknameData,s=n.quoteData,d=n.translatedQuoteData,c=n.salariesData,u=n.trademarksData,m=n.translatedTrademarksData,p=n.triviaData,v=n.translatedTriviaData,g=n.totalTrademarks,h=n.totalSalaries;if(!t&&!i&&!g&&!o&&!h)return null;var y="https://contribute.imdb.com/updates?edit=".concat(r,"/fun-facts&ref_=nm_dyk_edt");return(0,a.jsx)(ye.wW,{componentId:he.NG.DidYouKnow,children:(0,a.jsxs)(f.PageSection,{baseColor:"base","data-testid":he.NG.DidYouKnow,children:[(0,a.jsx)(Ui.O,{title:{id:"name_main_dyk_title",defaultMessage:"Did you know"},editHref:y}),t&&(0,a.jsx)(Vi,{translatedTriviaData:v,nameId:r,triviaData:p}),i&&(0,a.jsx)(ii,{translatedQuoteData:d,nameId:r,quoteData:s}),g>0&&(0,a.jsx)(Ai,{trademarksData:u,totalTrademarks:g,translatedTrademarksData:m}),o&&(0,a.jsx)(Kt,{nicknameData:l}),h>0&&(0,a.jsx)(xi,{salariesData:c,totalSalaries:h})]})})},Gi=function(e){return!!(e&&e.total>0)},Hi=function(e){var n,t,i,o,r,l,s,d,c,u,m,f,p,v,g,h,y,x,T,_,b,C,I,S,P,D,N,E,M,j,L,w,k,A=e.data;if(!A)return null;var Z,O,R,B,Y,F,q,V,U=A.id,z=A.nickNames,G=A.quotes,H=A.titleSalaries,Q=A.trademarks,$=A.trivia,W=Gi(A.triviaTotal),J=Gi(A.quotesTotal),K=!!(null===z||void 0===z?void 0:z.length),X=null!==(Z=null===(n=A.titleSalariesTotal)||void 0===n?void 0:n.total)&&void 0!==Z?Z:0,ee=null!==(O=null===(t=A.trademarksTotal)||void 0===t?void 0:t.total)&&void 0!==O?O:0,ne=K?(z||[]).map((function(e){var n,t;return null===e||void 0===e||null===(n=e.displayableProperty)||void 0===n||null===(t=n.value)||void 0===t?void 0:t.plainText})).filter((function(e){return"string"===typeof e})):void 0,te=null!==(R=null===G||void 0===G||null===(i=G.edges)||void 0===i||null===(o=i[0])||void 0===o||null===(r=o.node)||void 0===r||null===(l=r.displayableArticle)||void 0===l||null===(s=l.body)||void 0===s?void 0:s.plaidHtml)&&void 0!==R?R:void 0,ie=null!==(B=null===G||void 0===G||null===(d=G.edges)||void 0===d||null===(c=d[0])||void 0===c||null===(u=c.node)||void 0===u||null===(m=u.experimental_translatedDisplayableArticle)||void 0===m||null===(f=m.body)||void 0===f?void 0:f.plaidHtml)&&void 0!==B?B:void 0,ae=null!==(Y=null===$||void 0===$||null===(p=$.edges)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.node)||void 0===g||null===(h=g.displayableArticle)||void 0===h||null===(y=h.body)||void 0===y?void 0:y.plaidHtml)&&void 0!==Y?Y:void 0,oe=null!==(F=null===$||void 0===$||null===(x=$.edges)||void 0===x||null===(T=x[0])||void 0===T||null===(_=T.node)||void 0===_||null===(b=_.experimental_translatedDisplayableArticle)||void 0===b||null===(C=b.body)||void 0===C?void 0:C.plaidHtml)&&void 0!==F?F:void 0,re=null===H||void 0===H||null===(I=H.edges)||void 0===I?void 0:I[0],le=Ti(re),se=null!==(q=null===Q||void 0===Q||null===(S=Q.edges)||void 0===S||null===(P=S[0])||void 0===P||null===(D=P.node)||void 0===D||null===(N=D.displayableArticle)||void 0===N||null===(E=N.body)||void 0===E?void 0:E.plaidHtml)&&void 0!==q?q:void 0,de=null!==(V=null===Q||void 0===Q||null===(M=Q.edges)||void 0===M||null===(j=M[0])||void 0===j||null===(L=j.node)||void 0===L||null===(w=L.experimental_translatedDisplayableArticle)||void 0===w||null===(k=w.body)||void 0===k?void 0:k.plaidHtml)&&void 0!==V?V:void 0;return(0,a.jsx)(zi,{data:{hasNickname:K,hasQuotes:J,hasTrivia:W,nameId:U,nicknameData:ne,quoteData:te,salariesData:le,totalSalaries:X,totalTrademarks:ee,trademarksData:se,triviaData:ae,translatedQuoteData:ie,translatedTriviaData:oe,translatedTrademarksData:de}})};function Qi(){var e=(0,u.Z)(["\n fragment NameMainDYK on Name {\n id\n ...NameDYKTrivia\n ...NameDYKQuotes\n ...NameDYKTrademarks\n ...NameDYKNickname\n ...NameDYKSalaries\n }\n ","\n ","\n ","\n ","\n ","\n "]);return Qi=function(){return e},e}var $i={component:function(e){return(0,a.jsx)(Hi,(0,i.Z)({},e))},fragment:{name:"NameMainDYK",gql:b()(Qi(),qi,ti,wi,Jt,hi)},shouldInstrumentMetrics:!0},Wi=t(8225),Ji=t(54499),Ki=t(33335),Xi=t(50930),ea=t(77243),na=t(87829),ta=t(95224),ia=t(22414),aa=t(65833),oa="ymktf-parent",ra="ymktf-shoveler",la=t(18136);function sa(){var e=(0,u.Z)(["\n query YouMayKnowThemFrom($nameId: ID!, $includeUserRating: Boolean!) {\n name(id: $nameId) {\n nameText {\n text\n }\n primaryImage {\n caption {\n plainText\n }\n url\n height\n width\n }\n }\n ratedTitlesWithName: advancedTitleSearch(\n first: 25\n constraints: {\n creditedNameConstraint: { allNameIds: [$nameId] }\n myRatingConstraint: { filterType: INCLUDE }\n }\n ) @include(if: $includeUserRating) {\n edges {\n node {\n title {\n ...BaseTitleCard\n ...PersonalizedTitleCardUserRating\n }\n }\n }\n }\n chartMovies: chartTitles(\n first: 100\n chart: { chartType: MOST_POPULAR_MOVIES }\n filter: { creditedNameConstraint: { allNameIds: [$nameId] } }\n ) {\n edges {\n node {\n ...BaseTitleCard\n }\n }\n }\n chartTV: chartTitles(\n first: 100\n chart: { chartType: MOST_POPULAR_TV_SHOWS }\n filter: { creditedNameConstraint: { allNameIds: [$nameId] } }\n ) {\n edges {\n node {\n ...BaseTitleCard\n }\n }\n }\n }\n ","\n ","\n"]);return sa=function(){return e},e}var da=b()(sa(),la.c.fragments.baseTitleCard,la.c.fragments.personalizedTitleCardUserRating),ca=function(e){var n=e.nameId,t=(0,v.Z)(),i=(0,S.nu)(),r=(0,Se.y)().refTagPrefix,l=(0,o.useState)([]),s=l[0],d=l[1],u=(0,Te.hg)({weblabID:c.lh.IMDB_YOU_MAY_KNOW_THEM_FROM_919392,treatments:{T1:!0}}),m=(0,x.Z)((0,S.E8)({query:da,context:{personalized:i,serverSideCacheable:!i},variables:{nameId:n,includeUserRating:i},pause:!(0,T.getIsBrowser)()||!u}),1)[0],p=m.data,g=m.error,h=m.fetching;return(0,o.useEffect)((function(){if(p){var e,n,t,i,a,o,r=new Set,l=[];(null!==(i=null===p||void 0===p||null===(e=p.ratedTitlesWithName)||void 0===e?void 0:e.edges)&&void 0!==i?i:[]).forEach((function(e){var n,t=null===e||void 0===e||null===(n=e.node)||void 0===n?void 0:n.title,i=null===t||void 0===t?void 0:t.id;i&&!r.has(i)&&(r.add(i),l.push(t))})),(null!==(a=null===p||void 0===p||null===(n=p.chartMovies)||void 0===n?void 0:n.edges)&&void 0!==a?a:[]).forEach((function(e){var n=null===e||void 0===e?void 0:e.node,t=null===n||void 0===n?void 0:n.id;t&&!r.has(t)&&(r.add(t),l.push(n))})),(null!==(o=null===p||void 0===p||null===(t=p.chartTV)||void 0===t?void 0:t.edges)&&void 0!==o?o:[]).forEach((function(e){var n=null===e||void 0===e?void 0:e.node,t=null===n||void 0===n?void 0:n.id;t&&!r.has(t)&&(r.add(t),l.push(n))})),d(l)}}),[p,g]),h||s.length?(0,a.jsxs)(f.PageSection,{className:oa,children:[(0,a.jsx)(Ui.O,{title:t.formatMessage({id:"feature_you_may_know_them_from_title",defaultMessage:"You may know them from"})}),h&&(0,a.jsx)(ia.ZP,{height:"feature"}),!h&&s.length>0&&(0,a.jsx)(aa.t,{refTagPrefix:r,shovelerClassName:ra,titles:s})]}):null},ua=t(37184),ma=t(97277),fa=t(29506);function pa(){var e=(0,u.Z)(["\n query ","(\n $id: ID!\n ",",\n $includeUserRating: Boolean!\n ) {\n name(id: $id) {\n id\n nameText {\n text\n }\n primaryImage {\n caption {\n plainText\n }\n height\n width\n url\n }\n ","\n }\n }\n ","\n ","\n "]);return pa=function(){return e},e}var va=function(e,n,t,i,a,o,r){return b()(pa(),r?"NameMainFilmographyPaginatedCredits":"NameMainFilmographyFilteredCredits",r?"$after: ID":"",i&&!r?ga(e,n,t,a,o):e.map((function(e){return t?ha(e,a,o,r):n.map((function(n){return ha(e,a,o,r,n)}))})),Wi.pj,Ki.w)},ga=function(e,n,t,i,a){return t?'\n unreleasedCredits: creditCategories(\n filter: { \n projectStatus: ["UPCOMING"], \n '.concat(i.length>0?"genres: [".concat(i.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n ").concat(a.length>0?"excludeGenres: [".concat(a.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"",'\n }\n sort: {\n by: RELEASE_DATE,\n order: ASC\n }\n ) {\n category {\n id\n text\n }\n credits(first: 30) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n }\n releasedCredits: creditCategories(\n filter: { \n projectStatus: ["PREVIOUS"],\n ').concat(i.length>0?"genres: [".concat(i.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n ").concat(a.length>0?"excludeGenres: [".concat(a.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n }\n ) {\n category {\n id\n text\n }\n credits(first: 30) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n }\n "):"".concat(e.map((function(e){return n.map((function(n){return ha(e,i,a,void 0,n)}))})))},ha=function(e,n,t,i,a){var o=(null===i||void 0===i?void 0:i.fetchAll)?fa.c1:fa.Uk;if(a)return"\n ".concat(e,"_").concat(a,"_credits: credits(\n first: ").concat(o,"\n ").concat(i&&!(null===i||void 0===i?void 0:i.isUnreleased)?"after: $after":"",'\n filter: {\n categories: ["').concat(e,'"]\n titleTypeCategory: [').concat(a,"]\n ").concat(n.length>0?"genres: [".concat(n.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n ").concat(t.length>0?"excludeGenres: [".concat(t.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n }\n ) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n ");var r="";return i&&!(null===i||void 0===i?void 0:i.isUnreleased)||(r+="\n ".concat(e,"_unreleasedCredits: credits(\n first: ").concat(o,"\n ").concat(i?"after: $after":"",'\n filter: {\n categories: ["').concat(e,'"]\n projectStatus: ["UPCOMING"]\n ').concat(n.length>0?"genres: [".concat(n.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n ").concat(t.length>0?"excludeGenres: [".concat(t.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n }\n sort: {\n by: RELEASE_DATE,\n order: ASC\n }\n ) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n ")),i&&(null===i||void 0===i?void 0:i.isUnreleased)||(r+="\n ".concat(e,"_credits: credits(\n first: ").concat(o,"\n ").concat(i?"after: $after":"",'\n filter: {\n categories: ["').concat(e,'"]\n projectStatus: ["PREVIOUS"]\n ').concat(n.length>0?"genres: [".concat(n.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n ").concat(t.length>0?"excludeGenres: [".concat(t.map((function(e){return'"'.concat(e,'"')})).join(","),"]"):"","\n }\n ) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n ")),r},ya=t(26297),xa=t(8619),Ta=t.n(xa),_a=t(34725),ba=t(52982),Ca=t(95460),Ia=function(e,n,t){return"".concat(e,"_").concat(t?"".concat(t,"_"):"").concat(n?"unreleasedCredits":"credits")},Sa=function(e,n,t,i,a,o,r,l){var s=[];a?t?o.forEach((function(e){return s.push(e.id)})):(0,Xi.Z)(r).splice(0,3).forEach((function(e){return s.push(e.id)})):l?e.forEach((function(e){return s.push(e.id)})):e.forEach((function(e){if(t){var a,o,r,l,d,c,u=Ia(e.id,!0),m=null===(a=n[u])||void 0===a||null===(o=a.credits)||void 0===o||null===(r=o.edges)||void 0===r?void 0:r.length,f=Ia(e.id,!1),p=null===(l=n[f])||void 0===l||null===(d=l.credits)||void 0===d||null===(c=d.edges)||void 0===c?void 0:c.length;m||p||s.push(e.id)}else{var v=i.some((function(t){var i,a,o,r=Ia(e.id,!1,t.id);return Boolean(null===(i=n[r])||void 0===i||null===(a=i.credits)||void 0===a||null===(o=a.edges)||void 0===o?void 0:o.length)}));v||s.push(e.id)}}));return s},Pa=function(e){var n,t,i,a,o,r,l=null===e||void 0===e||null===(n=e.node)||void 0===n?void 0:n.title,s=null===l||void 0===l||null===(t=l.releaseYear)||void 0===t?void 0:t.year,d=null,c=0,u=null===e||void 0===e||null===(i=e.node)||void 0===i?void 0:i.category,m=null===u||void 0===u?void 0:u.text,f=null===u||void 0===u?void 0:u.id,p=(null!==(r=null===e||void 0===e||null===(a=e.node)||void 0===a?void 0:a.characters)&&void 0!==r?r:[]).map((function(e){return e.name})),v=[];if(!ba.k.some((function(e){return e===(null===u||void 0===u?void 0:u.id)}))){var g,h,y=(null!==(h=null===e||void 0===e||null===(g=e.node)||void 0===g?void 0:g.jobs)&&void 0!==h?h:[]).map((function(e){return{id:null===e||void 0===e?void 0:e.id,label:null===e||void 0===e?void 0:e.text}}));y.length||y.push({id:null===u||void 0===u?void 0:u.id,label:String(null===u||void 0===u?void 0:u.text)}),v=y}var x,T,_,b,C,I,S,P,D,N,E=(0,_a.f)(e.node);(null===l||void 0===l||null===(o=l.titleType)||void 0===o?void 0:o.canHaveEpisodes)&&(s=null!==(D=null===e||void 0===e||null===(x=e.node)||void 0===x||null===(T=x.episodeCredits)||void 0===T||null===(_=T.yearRange)||void 0===_?void 0:_.year)&&void 0!==D?D:s,d=null!==(N=null===e||void 0===e||null===(b=e.node)||void 0===b||null===(C=b.episodeCredits)||void 0===C||null===(I=C.yearRange)||void 0===I?void 0:I.endYear)&&void 0!==N?N:d,c=null===e||void 0===e||null===(S=e.node)||void 0===S||null===(P=S.episodeCredits)||void 0===P?void 0:P.total);return{creditCategory:m,creditCategoryId:f,characters:p,crewJobs:v,endYear:d,episodeCreditsCount:c,releaseYear:s,seasonOrYearEpisodeData:E}},Da=function(e,n){var t=fa.TN[null!==n&&void 0!==n?n:""];return"".concat(e).concat(t?"_".concat(t):"")},Na=function(e,n,t,i){var a={type:r.PageType.NAME,subType:r.SubPageType.MAIN,id:e},o=null!==t&&void 0!==t?t:n.replace(/-/g,"_"),l=null!==i&&void 0!==i?i:$t.qB.ACTION_ONLY;(0,Ca.ar)(a,n,l,o)},Ea=function(e,n,t,i,a){if(n)return fa.Pf.Error;var o=e||{},r=o.job,l=o.titleType,s=o.isUnreleased;return r===t&&s===i&&(!l&&!a||l===a)?fa.Pf.All:fa.Pf.None},Ma=function(e,n,t,i,a){var o=void 0;return n.every((function(n){if(t){var r=Ia(n.id,!0);if(a[r]){var l,s,d,c=null===(l=e[r])||void 0===l?void 0:l.credits;if(c&&(null===(s=c.pageInfo)||void 0===s?void 0:s.hasNextPage))return o={endCursor:null!==(d=c.pageInfo.endCursor)&&void 0!==d?d:"",fetchAll:!0,isUnreleased:!0,job:n.id,titleType:void 0},!1}var u=Ia(n.id,!1);if(a[u]){var m,f,p,v=null===(m=e[u])||void 0===m?void 0:m.credits;if(v&&(null===(f=v.pageInfo)||void 0===f?void 0:f.hasNextPage))return o={endCursor:null!==(p=v.pageInfo.endCursor)&&void 0!==p?p:"",fetchAll:!0,isUnreleased:!1,job:n.id,titleType:void 0},!1}}else{var g;(null!==(g=i[n.id])&&void 0!==g?g:[]).every((function(t){var i=Ia(n.id,!1,t.id);if(a[i]){var r,l,s,d=null===(r=e[i])||void 0===r?void 0:r.credits;if(d&&(null===(l=d.pageInfo)||void 0===l?void 0:l.hasNextPage))return o={endCursor:null!==(s=d.pageInfo.endCursor)&&void 0!==s?s:"",fetchAll:!0,isUnreleased:!1,job:n.id,titleType:t.id},!1}return!0}))}return!0})),o},ja=function(e,n,t){var i={};return e?n.forEach((function(e){var n=Ia(e.id,!1),t=Ia(e.id,!0);i[n]=!0,i[t]=!0})):n.forEach((function(e){t.forEach((function(n){var t=Ia(e.id,!1,n.id);i[t]=!0}))})),i},La=t(98258),wa=t(94081);function ka(){var e=(0,u.Z)(["\n && {\n &:link {\n ","\n }\n }\n"]);return ka=function(){return e},e}function Aa(){var e=(0,u.Z)(["\n ","\n ","\n margin-bottom: ",";\n"]);return Aa=function(){return e},e}function Za(){var e=(0,u.Z)(["\n ","\n margin-top: ",";\n"]);return Za=function(){return e},e}function Oa(){var e=(0,u.Z)(["\n margin-right: ","};\n"]);return Oa=function(){return e},e}function Ra(){var e=(0,u.Z)(["\n ","\n ","\n \n // Negative margin-top aligns with project type chip (with subtitle)\n .nm-flmg-srt-d {\n margin-top: -1rem;\n }\n\n .text-view-credits-link {\n margin-top: ",";\n margin-bottom: ",";\n }\n"]);return Ra=function(){return e},e}function Ba(){var e=(0,u.Z)(["\n ","\n ","\n margin-bottom: ",";\n"]);return Ba=function(){return e},e}function Ya(){var e=(0,u.Z)(["\n ","\n ","\n \n align-items: center;\n display: inline-flex;\n width: 100%;\n\n .exclude-genre-checkbox {\n margin-left: ",";\n }\n"]);return Ya=function(){return e},e}function Fa(){var e=(0,u.Z)(["\n display: inline-flex;\n align-items: baseline;\n width: 100%;\n"]);return Fa=function(){return e},e}function qa(){var e=(0,u.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n"]);return qa=function(){return e},e}function Va(){var e=(0,u.Z)(["\n ","\n\n // Right margin matches the chip's margin to ensure it center's itself under the chip\n margin-right: 0.5rem;\n"]);return Va=function(){return e},e}function Ua(){var e=(0,u.Z)(["\n ","\n"]);return Ua=function(){return e},e}var za="nm_flmg_shw",Ga="Short",Ha="Documentary",Qa=function(e){var n=e.genres,t=e.excludedGenres,i=e.includedGenres,o=e.nameText,r=e.onExcludeGenre,l=e.onIncludeGenre,s=e.onSortSelect,d=e.sortByDate,u=e.sortMenuRef,m=(0,v.Z)(),p=(0,Se.y)().pageConst,g=m.formatMessage(fa.TY.SORT_BY),h=m.formatMessage(fa.TY.BY_DATE),y=m.formatMessage(fa.TY.BY_TYPE),x=m.formatMessage(fa.TY.SEE_ALSO),T=m.formatMessage(fa.TY.BY_RATING),_=m.formatMessage(fa.TY.BY_VOTES),b=m.formatMessage(fa.TY.BY_KEYWORD),C=m.formatMessage(fa.TY.INCLUDED_GENRES),I=m.formatMessage(fa.TY.EXCLUDE),S=m.formatMessage(fa.TY.VIEW_ALL_CREDITS),P=n.some((function(e){return e===Ha})),D=n.some((function(e){return e===Ga})),N=t.some((function(e){return e===Ha})),E=t.some((function(e){return e===Ga})),M=n;M=E?M.filter((function(e){return e!==Ga})):M,M=N?M.filter((function(e){return e!==Ha})):M;var j=m.formatMessage({id:"name_main_filmography_Documentary",defaultMessage:"Documentary"}),L=m.formatMessage({id:"name_main_filmography_Short",defaultMessage:"Short"}),w=function(e,n){var t=(0,v.Z)(),i=n[(0,wa.x)(e)||c.M1.C]||n[c.M1.C];return i?t.formatMessage(i):void 0}(c.lh.IMDB_NEXT_EXPERIMENT_FILMO_SORT_647951,fa.Zc),k=w?void 0:g;return(0,a.jsx)(f.ChipDropdown,{ariaLabel:k,label:w,chipRef:u,className:fa.z7.SortMenu,"data-testid":fa.z7.SortMenu,breakpointConfig:{m:La.PROMPT_TYPES.bottomsheet},filled:!0,onColor:"accent2",onSelect:function(){return p&&Na(p,"nm-flmg-sort-menu")},postIconProps:{name:"filter-list"},children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Xa,{className:"filmography-sort-type-container",children:[(0,a.jsx)(eo,{children:g}),(0,a.jsxs)(to,{wrap:!0,children:[(0,a.jsx)(f.Chip,{className:"nm-flmg-srt-d","data-testid":fa.z7.SortMenu_Date,active:d,label:h,onSelect:function(){return s(fa.ER.Date)}}),(0,a.jsxs)(io,{children:[(0,a.jsx)(f.Chip,{"data-testid":fa.z7.SortMenu_Type,active:!d,label:y,onSelect:function(){return s(fa.ER.TitleType)}}),(0,a.jsx)(ao,{children:m.formatMessage(fa.TY.BY_TYPE_SUBTITLE)})]})]}),(P||D)&&(0,a.jsxs)(no,{children:[(0,a.jsx)("span",{children:I}),D&&(0,a.jsx)(f.CheckBox,{ariaLabel:L,checked:E,className:"exclude-genre-checkbox",iconActiveColor:"accent1",id:"exclude-short-checkbox",label:L,name:L,onChange:function(e){r(Ga,!e),i.some((function(e){return e===Ga}))&&l(Ga,!0)}}),P&&(0,a.jsx)(f.CheckBox,{ariaLabel:j,checked:N,className:"exclude-genre-checkbox",iconActiveColor:"accent1",id:"exclude-documentary-checkbox",label:j,name:j,onChange:function(e){r(Ha,!e),i.some((function(e){return e===Ha}))&&l(Ha,!0)}})]})]}),M.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.PageSectionDivider,{}),(0,a.jsxs)(Xa,{className:"filmography-genre-filter-container",children:[(0,a.jsx)(eo,{children:C}),(0,a.jsx)(f.ChipList,{wrap:!0,children:M.map((function(e){var n=-1!==i.indexOf(e);return(0,a.jsx)(f.Chip,{active:n,"data-testid":"filmo-ig-".concat(e),label:m.formatMessage({id:"name_main_filmography_".concat(e),defaultMessage:e}),onSelect:function(){return l(e,n)},postIconProps:n?{name:"clear"}:void 0},"filmo-ig-".concat(e))}))})]})]}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.PageSectionDivider,{}),(0,a.jsxs)(Xa,{className:"filmography-ql-filter-container",children:[(0,a.jsx)(Wa,{children:x}),(0,a.jsx)(oo,{children:m.formatMessage(fa.TY.SEE_ALSO_SUBTITLE,{nameText:o})}),(0,a.jsxs)(Ja,{showDividers:!1,children:[(0,a.jsx)(Ka,{children:(0,a.jsx)($a,{className:"filmography-by-rating-ql",href:"/filmosearch/?sort=user_rating&explore=title_type&role=".concat(p,"&ref_=").concat(za,"_rtg_ql"),postIcon:"arrow-right",text:T})}),(0,a.jsx)(Ka,{children:(0,a.jsx)($a,{className:"filmography-by-votes-ql",href:"/filmosearch/?sort=num_votes&explore=title_type&role=".concat(p,"&ref_=").concat(za,"_pop_ql"),postIcon:"arrow-right",text:_})}),(0,a.jsx)(Ka,{children:(0,a.jsx)($a,{className:"filmography-by-keyword-ql",href:"/filmosearch/?sort=moviemeter&explore=keywords&role=".concat(p,"&ref_=").concat(za,"_key_ql"),postIcon:"arrow-right",text:b})})]})]})]}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.PageSectionDivider,{}),(0,a.jsx)(Xa,{children:(0,a.jsx)(f.TextLink,{className:"text-view-credits-link",text:S,href:"/name/".concat(p,"/fullcredits?ref_=nm_flmg_sort_text_view")})})]})]})})},$a=(0,m.default)(f.TextLink).withConfig({componentId:"sc-a8fc2873-0"})(ka(),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color")),Wa=m.default.div.withConfig({componentId:"sc-a8fc2873-1"})(Aa(),(0,p.setTypographyType)("overline"),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-accent1-color"),p.spacing.xs),Ja=(0,m.default)(f.InlineList).withConfig({componentId:"sc-a8fc2873-2"})(Za(),(0,p.setTypographyType)("bodySmall"),p.spacing.s),Ka=(0,m.default)(f.InlineListItem).withConfig({componentId:"sc-a8fc2873-3"})(Oa(),p.spacing.s),Xa=m.default.div.withConfig({componentId:"sc-a8fc2873-4"})(Ra(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),p.spacing.xs,p.spacing.xs),eo=m.default.div.withConfig({componentId:"sc-a8fc2873-5"})(Ba(),(0,p.setTypographyType)("overline"),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-accent1-color"),p.spacing.s),no=m.default.div.withConfig({componentId:"sc-a8fc2873-6"})(Ya(),(0,p.setTypographyType)("body"),(0,p.setPropertyToColorVar)("color","ipt-on-baseAlt-textPrimary-color"),p.spacing.xs),to=(0,m.default)(f.ChipList).withConfig({componentId:"sc-a8fc2873-7"})(Fa()),io=m.default.div.withConfig({componentId:"sc-a8fc2873-8"})(qa()),ao=m.default.span.withConfig({componentId:"sc-a8fc2873-9"})(Va(),(0,p.setTypographyType)("copyright")),oo=m.default.span.withConfig({componentId:"sc-a8fc2873-10"})(Ua(),(0,p.setTypographyType)("copyright"));function ro(){var e=(0,u.Z)(["\n ",";\n ",";\n display: block;\n margin-bottom: 0;\n\n // For touchscreens that don't have the sidebar on the side,\n // we do not want the ChipList to get cut off on the right\n "," {\n "," {\n margin-right: 0;\n }\n }\n"]);return ro=function(){return e},e}var lo=function(e){var n=(0,v.Z)(),t=(0,Se.y)().pageConst,o=e.jobData,r=e.onJobSelect,l=e.selectedJobs,s=(0,ya.Z)(e,["jobData","onJobSelect","selectedJobs"]),d=o.filter((function(e){return!l.some((function(n){return n.id===e.id}))}));return(0,a.jsxs)(so,{className:Di()(fa.z7.ChipFilters,e.className),onNextPage:function(){return Na(String(t),"next-button-click","nm_flmg_fltr_nav")},onPreviousPage:function(){return Na(String(t),"prev-button-click","nm_flmg_fltr_nav")},wrap:!1,children:[(0,a.jsx)(Qa,(0,i.Z)({},s)),l.map((function(e){return(0,a.jsx)(f.Chip,{className:"filmography-selected-chip-filter",active:!0,id:"name-filmography-filter-".concat(e.id),label:e.label,onClick:function(){return r(e,!1)},onColor:"accent2",postIconProps:{name:"clear"},secondaryText:String(e.count)},"name-filmography-filter-".concat(e.id))})),1===d.length?(0,a.jsx)(f.Chip,{className:"filmography-unselected-chip-filter",id:"name-filmography-filter-".concat(d[0].id),label:d[0].label,onColor:"accent2",onClick:function(){return r(d[0],!0)},secondaryText:String(d[0].count)},"name-filmography-filter-".concat(d[0].id)):(0,a.jsx)(Ta(),{chips:d.map((function(e){return{id:"name-filmography-filter-".concat(e.id),key:"name-filmography-filter-".concat(e.id),label:e.label,onClick:function(){return r(e,!0)},secondaryText:String(e.count)}})),className:"filmography-chip-group",onColor:"accent2"}),(0,a.jsx)(f.Chip,{filled:!0,id:"name-filmography-pro-chip",href:"https://pro.imdb.com/name/".concat(t,"/?ref_=cons_nm_filmo&rf=cons_nm_filmo"),label:n.formatMessage({id:"name_main_pro_filmo_in_dev",defaultMessage:"IMDbPro"}),onColor:"accent2",postIconProps:{name:"launch"}})]})},so=(0,m.default)(f.ChipList).withConfig({componentId:"sc-1e4725ef-0"})(ro(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),p.mediaQueries.devices.onTouchScreens,p.mediaQueries.breakpoints.below.l),co=t(51817),uo=t(12512),mo=t(61436),fo=t(65759),po=t(35635),vo=t(77637),go=function(e){var n,t=e.className,i=e.credit,o=e.titleNode,r=e.refTag,l=e.setTitlePromptVisible,s=(0,v.Z)(),d=(0,Se.y)().pageConst;return i&&o?(0,a.jsx)(f.IconButton,{name:"info",onColor:"accent2",id:"".concat(r,"-").concat(null===(n=i.category)||void 0===n?void 0:n.id,"-").concat(o.id).replace("_","-"),label:s.formatMessage(fa.TY.SEE_MORE),className:Di()("credit-card-details-button",t),onSelect:function(){Na(String(d),"tp-prmpt-open",r,$t.qB.POP_UP),l(!0)}}):null},ho=t(59025),yo=t(22792),xo="nm_flmg",To=function(e){var n,t,o,r,l,s,d,c,u=e.index,m=e.credit,f=e.titleNode,p=e.nameId,g=e.nameText,h=e.characters,y=e.crewJobs,x=e.attributes,T=e.episodeCreditsCount,_=e.releaseYear,b=e.endYear,C=e.creditCategoryId,I=e.titlePromptVisible,S=e.setTitlePromptVisible,P=e.episodicSheetVisible,D=e.setEpisodicSheetVisible,N=e.seasonOrYearEpisodeData,E=e.releaseFilter,M=(0,Fn.B)().context,j=(0,v.Z)(),L=(0,Ca.iI)();if(!m||!f)return null;var w,k=null!==(c=(0,di.L)(M,null===(n=f.originalTitleText)||void 0===n?void 0:n.text,null===(t=f.titleText)||void 0===t?void 0:t.text))&&void 0!==c?c:"",A=null===(o=f.titleType)||void 0===o?void 0:o.id,Z=(null===(r=f.primaryImage)||void 0===r||null===(l=r.caption)||void 0===l?void 0:l.plainText)||k,O=(0,xe.Gs)((0,i.Z)({},f.primaryImage),Z),R=f.releaseYear?(0,po.y)({year:_,endYear:b},!1):void 0,B=Da(u+1,C),Y={id:C,label:null!==(w=null===(s=m.category)||void 0===s?void 0:s.text)&&void 0!==w?w:""},F=(0,vo.z)(xo,{suffix:B}),q={href:"/title/".concat(f.id,"/?ref_=").concat(F),imageModel:O,isOpen:!0,title:k,titleType:A,type:"poster"};return(0,a.jsxs)(a.Fragment,{children:[I&&(0,a.jsx)(ho.d,{contentOverride:function(){var e,n,t,o,r,l,s,d,c,u=[];return T&&u.push({text:j.formatMessage(fa.TY.SEE_EPISODES_COUNT,{totalEpisodes:T})}),R&&u.push({text:R}),(0,a.jsx)(ho._,{titleData:{attributes:x,certificate:null===(e=f.certificate)||void 0===e?void 0:e.rating,canRate:Boolean(null===(n=f.canRate)||void 0===n?void 0:n.isRatable),creditSummary:(null===h||void 0===h?void 0:h.length)?h:y.map((function(e){return e.label})),endYear:b,episodeCount:T,genres:null===(t=f.titleGenres)||void 0===t||null===(o=t.genres)||void 0===o?void 0:o.map((function(e){return e.genre.text})),id:f.id,jobCategory:Y,primaryImage:(0,i.Z)({},(0,xe.Gs)(f.primaryImage,Z)),rating:null!==(d=null===(r=f.ratingsSummary)||void 0===r?void 0:r.aggregateRating)&&void 0!==d?d:void 0,refPrefix:"".concat(xo,"_tp"),releaseYear:_,runtime:null===(l=f.runtime)||void 0===l?void 0:l.seconds,titleText:k,titleType:f.titleType?{canHaveEpisodes:f.titleType.canHaveEpisodes,id:f.titleType.id,text:f.titleType.text}:void 0,trailerId:null!==(c=null===(s=f.latestTrailer)||void 0===s?void 0:s.id)&&void 0!==c?c:void 0},titleMetadata:u,nameText:g,onEpisodicCreditClick:function(){L("".concat(xo,"_tp_eps"),"cc-series-creds"),S(!1),D(!0)}})},isOpen:I,onClose:function(){return S(!1)},refMarker:{prefix:xo},title:(0,i.Z)({},f)}),P&&(0,a.jsx)(yo.D,{headerProps:{ariaLabel:q.title,imageModel:q.imageModel,title:q.title,type:q.type,imageType:null===(d=f.titleType)||void 0===d?void 0:d.id},titleId:f.id,isOpen:P,episodeCount:null!==T&&void 0!==T?T:0,jobCategory:Y,nameId:p,onCloseSelected:function(){return D(!1)},refTagPrefix:xo,seasonOrYearEpisodeData:N,tenureText:R,releaseFilter:E})]})};function _o(e){var n,t,r,l=e.nameId,s=e.props,d=(0,o.useState)(!1),c=d[0],u=d[1],m=(0,o.useState)(!1),f=m[0],p=m[1],v=(null===s||void 0===s||null===(n=s.titleNode)||void 0===n?void 0:n.id)||"",g=null===s||void 0===s||null===(t=s.titleNode)||void 0===t||null===(r=t.userRating)||void 0===r?void 0:r.value;(0,ma.h)(v,g);var h=null,y=null;return void 0!==s&&(h=(0,a.jsx)(go,{className:s.className,titleNode:s.titleNode,credit:s.credit,refTag:s.refTag,setTitlePromptVisible:u}),y=(0,a.jsx)(To,(0,Ce.Z)((0,i.Z)({},s),{titlePromptVisible:c,setTitlePromptVisible:u,episodicSheetVisible:f,setEpisodicSheetVisible:p}))),{postElementComponent:h,promptComponent:y,setTitlePromptVisible:function(e){e&&Na(l,"cc-more-btn",void 0,$t.qB.POP_UP),u(e)},setEpisodicSheetVisible:function(e){e&&Na(l,"cc-series-creds","nm_flmg_cred_eps",$t.qB.POP_UP),p(e)}}}function bo(e){return e.filter((function(e){return!!e.node&&!!e.node.title&&!!e.node.title.id&&!!e.node.title.titleText&&!!e.node.title.titleText.text}))}var Co=function(e){var n,t,i,a;return null!==(a=null===(n=e.node)||void 0===n||null===(t=n.episodeCredits)||void 0===t?void 0:t.yearRange)&&void 0!==a?a:null===(i=e.node.title)||void 0===i?void 0:i.releaseYear};function Io(){var e=(0,u.Z)(["\n align-items: center;\n display: flex;\n flex-direction: row;\n"]);return Io=function(){return e},e}function So(){var e=(0,u.Z)(["\n margin-bottom: 0;\n margin-left: -2px; /* Makes rating better aligned with rest of credit text */\n margin-right: ",";\n width: fit-content;\n"]);return So=function(){return e},e}function Po(){var e=(0,u.Z)(["\n width: 52px;\n margin-right: 0.5rem;\n flex-shrink: 0;\n display: flex;\n "," {\n width: 40px;\n }\n"]);return Po=function(){return e},e}function Do(){var e=(0,u.Z)(["\n overflow: visible;\n\n .episode-click {\n font-weight: bold;\n }\n"]);return Do=function(){return e},e}var No="nm_flmg",Eo=function(e){var n,t,o,r,l,s,d,c,u,m,p,g,h,y,x,T,_=e.categoryTitle,b=e.className,C=e.credit,I=e.index,S=e.nameId,P=e.nameText,D=e.requestContext,N=e.releaseFilter,E=(0,v.Z)(),M=C.node.title,j=null!==(y=(0,di.L)(D,null===M||void 0===M||null===(n=M.originalTitleText)||void 0===n?void 0:n.text,null===M||void 0===M||null===(t=M.titleText)||void 0===t?void 0:t.text))&&void 0!==y?y:"",L=(0,mo.P)(null===(o=M.ratingsSummary)||void 0===o?void 0:o.aggregateRating,"imdb"),w=(null===(r=(0,f.useRatingsContext)((null===M||void 0===M?void 0:M.id)||""))||void 0===r?void 0:r.rating)||void 0,k=(0,mo.P)(w,"user"),A=E.formatMessage({id:"common_ariaLabels_ratingButtonRated",defaultMessage:"Your rating: {rating}"},{rating:k}),Z=E.formatMessage({id:"common_ariaLabels_ratingButtonUnrated",defaultMessage:"Rate {titleName}"},{titleName:j}),O=Pa(C),R=O.characters,B=O.creditCategoryId,Y=O.crewJobs,F=O.endYear,q=O.episodeCreditsCount,V=O.releaseYear,U=O.seasonOrYearEpisodeData,z=Da(I+1,B),G="/title/".concat(null===M||void 0===M?void 0:M.id,"/?ref_=").concat((0,vo.z)("c",{prefix:No,suffix:z})),H="/title/".concat(null===M||void 0===M?void 0:M.id,"/?ref_=").concat((0,vo.z)("i",{prefix:No,suffix:z})),Q="/title/".concat(null===M||void 0===M?void 0:M.id,"/?ref_=").concat((0,vo.z)("t",{prefix:No,suffix:z})),$=(0,fo.A)((null!==(x=null===C||void 0===C||null===(l=C.node)||void 0===l?void 0:l.attributes)&&void 0!==x?x:[]).map((function(e){return e.text})),Y),W=Mo(R,3),J=Mo(Y.map((function(e){return e.label})),3),K=!1;R&&R.length&&W?(T=W,K=R.length>W.length):J&&(T=J,K=Y.length>J.length);var X=$.length>0?" (".concat($.join(", "),")"):"",ee=K?" ...":"",ne="".concat(X).concat(ee);T&&T.length>0?T[T.length-1].subText=ne:T=[{text:"",subText:ne}];var te,ie=null===M||void 0===M||null===(s=M.titleType)||void 0===s||null===(d=s.displayableProperty)||void 0===d||null===(c=d.value)||void 0===c?void 0:c.plainText,ae=ie?[{text:ie}]:void 0,oe=Co(C),re=oe?(0,po.y)(oe,!1):void 0,le=re?[{text:re}]:void 0,se=(null===M||void 0===M||null===(u=M.primaryImage)||void 0===u||null===(m=u.caption)||void 0===m?void 0:m.plainText)||(null===M||void 0===M||null===(p=M.titleText)||void 0===p?void 0:p.text),de=(0,xe.Gs)((0,i.Z)({},null===M||void 0===M?void 0:M.primaryImage),se),ce=_o({nameId:S,props:{credit:null===C||void 0===C?void 0:C.node,index:I,titleNode:M,nameId:S,nameText:P,characters:R,crewJobs:Y,attributes:$,episodeCreditsCount:q,releaseYear:V,endYear:F,creditCategoryId:B,refTag:"nm_flmg_cred",seasonOrYearEpisodeData:U,className:fa.kA.PromptTrigger,releaseFilter:N}}),ue=ce.postElementComponent,me=ce.promptComponent,fe=ce.setTitlePromptVisible,pe=ce.setEpisodicSheetVisible,ve=(null===M||void 0===M?void 0:M.titleType)&&!!(null===M||void 0===M||null===(g=M.titleType)||void 0===g?void 0:g.canHaveEpisodes),ge=E.formatMessage(fa.TY.EPISODES_COUNT,{totalEpisodes:q}),he=ve&&q>0?[{ariaLabel:E.formatMessage(uo.F.EXPAND,{target:ge}),onClick:function(){fe(!1),pe(!0)},text:ge}]:void 0,ye="".concat(No,"_credit_").concat(_.toLowerCase(),"_").concat(I);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ko,{ariaLabel:j,className:b,cornerBottomList:he,cornerTopList:le,"data-testid":ye,href:G,postElement:ue,preElement:(0,a.jsx)(wo,{children:(0,a.jsx)(f.Poster,{imageProps:{imageModel:de,size:"s",imageType:null===(h=M.titleType)||void 0===h?void 0:h.id},href:H,ariaLabel:j,dynamicWidth:!0})}),title:j,titleLink:Q,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(jo,{children:[(L||k)&&(0,a.jsx)("span",{onSelect:function(){return Na(S,"filmography-row-click","nm_flmg_ratings")},children:(0,a.jsx)(Lo,{ariaLabelRated:A,ariaLabelUnrated:Z,className:"credit-rating-group",formattedImdbRating:L,formattedUserRating:k})}),(null!==(te=null===ae||void 0===ae?void 0:ae.length)&&void 0!==te?te:0)>0&&(null===ae||void 0===ae?void 0:ae.map((function(e,n){return(0,a.jsx)("span",{children:e.text},"credit-".concat(_.toLowerCase(),"_").concat(I,"-subtext-").concat(n))})))]}),T.length>0&&(0,a.jsx)(f.InlineList,{className:"credit-text-list",showDividers:!0,children:T.map((function(e,n){return(0,a.jsx)(f.InlineListItem,{children:(0,a.jsx)(co.TextOrLink,(0,i.Z)({},e))},"credit-".concat(_.toLowerCase(),"_").concat(I,"-text-").concat(n))}))})]})},"".concat(_,"-").concat(I)),me]})};function Mo(e,n){return e.map((function(e){return{text:e}})).slice(0,n)}var jo=m.default.div.withConfig({componentId:"sc-e73a2ab4-0"})(Io()),Lo=(0,m.default)(f.PosterCard.RatingStarGroup).withConfig({componentId:"sc-e73a2ab4-1"})(So(),p.spacing.xxs),wo=m.default.div.withConfig({componentId:"sc-e73a2ab4-2"})(Po(),p.mediaQueries.breakpoints.above.s),ko=(0,m.default)(f.MetaDataListSummaryItem).withConfig({componentId:"sc-e73a2ab4-3"})(Do()),Ao=t(47842);function Zo(){var e=(0,u.Z)(["\n ","\n margin: "," 0;\n text-align: center;\n width: 100%;\n"]);return Zo=function(){return e},e}function Oo(){var e=(0,u.Z)(["\n align-items: center;\n width: 100%;\n\n &.has-content {\n border-top: 1px solid transparent;\n ","\n }\n\n .filmography-see-all-button {\n float: left;\n }\n\n .filmography-credits-close-button {\n float: right;\n margin-right: ",";\n margin-bottom: ",";\n margin-top: ",";\n }\n\n "," {\n min-height: ",";\n }\n"]);return Oo=function(){return e},e}function Ro(){var e=(0,u.Z)(["\n display: block;\n ",";\n margin-bottom: ",";\n margin-top: ",";\n"]);return Ro=function(){return e},e}var Bo=function(e){var n=e.pageInfo,t=e.nameId,o=e.jobId,r=e.titleTypeId,l=e.isUnreleased,s=e.showCloseButton,d=e.seeMoreLoadingState,c=e.onSeeMoreClick,u=e.accordionKey,m=e.accordionStateData,p=(0,v.Z)(),g=m.accordionState,h=m.setAccordionState,y=n||{},x=y.endCursor,T=y.hasNextPage,_={endCursor:x,isUnreleased:l,job:o,titleType:r};return(0,a.jsxs)(a.Fragment,{children:[d===fa.Pf.Error&&(0,a.jsx)(Yo,{className:"filmography-paginated-error",children:p.formatMessage(fa.TY.PAGINATED_ERROR_MESSAGE)}),(0,a.jsxs)(Fo,{className:T||s?"has-content":"",children:[T&&(0,a.jsx)(qo,{className:"filmography-see-all-button",isLoading:d===fa.Pf.All,onClick:function(){Na(t,"nm-flmg-see-all-".concat(fa.TN[o])),document.activeElement&&function(e){for(var n=e,t=void 0;!t&&n;){var i,a,o;(null===(i=n.parentElement)||void 0===i||null===(a=i.classList)||void 0===a?void 0:a.contains(fa.bV))?t=n.parentElement:n=null!==(o=n.parentElement)&&void 0!==o?o:void 0}if(t){var r=t.children[0].getElementsByTagName("a"),l=r[r.length-1];null===l||void 0===l||l.focus()}}(document.activeElement),c((0,Ce.Z)((0,i.Z)({},_),{fetchAll:!0}))},"data-testid":"nm-flmg-paginated-all-".concat(o),text:p.formatMessage(fa.TY.ALL)}),s&&(0,a.jsx)(f.TextButton,{className:"filmography-credits-close-button","data-testid":"nm-flmg-paginated-close-".concat(o),onClick:function(){var e;Na(t,"nm-flmg-close-".concat(fa.TN[o])),h((0,Ce.Z)((0,i.Z)({},g),(0,Ao.Z)({},u,!1)));var n=null===(e=document.getElementsByClassName(fa.z7.ChipFilters))||void 0===e?void 0:e[0];n&&n.scrollIntoView({behavior:"smooth"})},postIcon:"clear",children:p.formatMessage(fa.TY.CLOSE)})]})]})},Yo=m.default.div.withConfig({componentId:"sc-91b471f2-0"})(Zo(),(0,p.setTypographyType)("body"),p.spacing.m),Fo=m.default.div.withConfig({componentId:"sc-91b471f2-1"})(Oo(),(0,p.setPropertyToColorVar)("border-color","ipt-base-border-color"),p.spacing.m,p.spacing.s,p.spacing.xs,p.mediaQueries.breakpoints.above.l,p.spacing.m),qo=(0,m.default)(f.SeeMoreButton).withConfig({componentId:"sc-91b471f2-2"})(Ro(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),p.spacing.s,p.spacing.xs),Vo=t(75467);function Uo(){var e=(0,u.Z)(["\n ",";\n"]);return Uo=function(){return e},e}function zo(){var e=(0,u.Z)(["\n margin-right: ",";\n margin-top: ",";\n align-self: flex-start;\n"]);return zo=function(){return e},e}var Go=function(e){var n,t,o,r,l,s,d,c,u=e.className,m=e.credit,f=e.nameId,p=e.nameText,g=e.index,h=e.requestContext,y=(0,v.Z)(),x=m.node.title,T=Pa(m),_=T.characters,b=T.creditCategoryId,C=T.crewJobs,I=T.endYear,S=T.episodeCreditsCount,P=T.releaseYear,D=T.seasonOrYearEpisodeData,N=(0,fo.A)((null!==(c=m.node.attributes)&&void 0!==c?c:[]).map((function(e){return e.text})),C),E=N.join(", "),M=_.join(", "),j=C.map((function(e){return e.label})).join(", "),L=null===x||void 0===x||null===(n=x.titleType)||void 0===n||null===(t=n.displayableProperty)||void 0===t||null===(o=t.value)||void 0===o?void 0:o.plainText,w=_o({nameId:f,props:{credit:null===m||void 0===m?void 0:m.node,index:g,titleNode:x,nameId:f,nameText:p,characters:_,crewJobs:C,attributes:N,episodeCreditsCount:S,releaseYear:P,endYear:I,creditCategoryId:b,refTag:"nm_flmg_unrel_cred",seasonOrYearEpisodeData:D,className:fa.kA.PromptTrigger,releaseFilter:"UPCOMING"}}),k=w.setTitlePromptVisible,A=w.setEpisodicSheetVisible,Z=w.postElementComponent,O=w.promptComponent,R=[{subText:E?" (".concat(E,")"):"",text:M.length?M:j}],B=[],Y=[],F=[],q=y.formatMessage(fa.TY.EPISODES_COUNT,{totalEpisodes:S});S&&B.push({ariaLabel:y.formatMessage(uo.F.EXPAND,{target:q}),onClick:function(){k(!1),A(!0)},text:q});var V=Co(m);V&&Y.push({text:String((0,po.y)(V,!1))}),(null===x||void 0===x||null===(r=x.productionStatus)||void 0===r||null===(l=r.currentProductionStage)||void 0===l?void 0:l.text)&&F.push({href:"https://pro.imdb.com/title/".concat(x.id,"?rf=cons_nm_filmo&ref_=cons_nm_filmo"),text:null===x||void 0===x||null===(s=x.productionStatus)||void 0===s||null===(d=s.currentProductionStage)||void 0===d?void 0:d.text}),L&&F.push({text:L});var U,z={pageType:h.pageType,subPageType:h.subPageType,refTag:"nm_flmg_unrel_wla"},G="ref_=nm_flmg_unrel_".concat(Da(g,b)),H="/title/".concat(x.id,"/?").concat(G),Q="nm_flmg_unrel_credit_".concat(b,"_").concat(g);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ho,{className:null!==u&&void 0!==u?u:"unreleased-credit",cornerBottomList:B,cornerTopList:Y,"data-testid":Q,href:H,postElement:Z,preElement:(0,a.jsx)(Vo.WatchlistConsumer,{id:x.id,metricsContext:z,render:function(e){return(0,a.jsx)(Qo,(0,Ce.Z)((0,i.Z)({},e),{onImage:!1,size:"m"}))}}),subTextList:F,textList:R,title:null!==(U=(0,di.L)(h,x.originalTitleText,x.titleText))&&void 0!==U?U:"",titleLink:H},"filmography-".concat(x.id,"-credit")),O]})},Ho=(0,m.default)(f.MetaDataListSummaryItem).withConfig({componentId:"sc-826366e7-0"})(Uo(),(0,p.setPropertyToColorVar)("border-color","ipt-base-border-color")),Qo=(0,m.default)(f.WatchlistRibbon).withConfig({componentId:"sc-826366e7-1"})(zo(),p.spacing.xs,p.spacing.xxs);function $o(){var e=(0,u.Z)(["\n background: inherit;\n\n .credits-total {\n ","\n }\n\n .titleType-unreleased-credit {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n border-top-style: solid;\n border-top-width: 1px;\n }\n\n .titleType-unreleased-credit,\n .unreleased-credit:first-of-type {\n border-top: none;\n }\n\n .unreleased-credit:last-of-type {\n border-bottom: none;\n }\n\n .accordion-item {\n position: relative;\n\n &:after {\n content: '';\n ","\n ","\n\t\t\t","\n\t\t\tdisplay: block;\n box-sizing: border-box;\n width: calc(100% - ("," * 2));\n height: 1px;\n position: relative;\n top: 100%;\n z-index: 10;\n left: 0;\n\n "," {\n margin-left: 0;\n margin-right: 0;\n width: 100%;\n }\n }\n }\n .accordion-content {\n ","\n ","\n }\n\n .accordion-label {\n ","\n font-weight: 500;\n }\n"]);return $o=function(){return e},e}var Wo=function(e){var n,t,o,r=e.accordionStateData,l=e.creditData,s=e.job,d=e.nameId,c=e.nameText,u=e.onSeeMoreClick,m=e.requestContext,p=e.seeMoreLoadingState,g=e.titleType,h=(0,v.Z)(),y=r.accordionState,x=r.setAccordionState,T=Ia(s.id,!1,g.id),_=null===l||void 0===l||null===(n=l[T])||void 0===n?void 0:n.credits,b=null!==(t=null===_||void 0===_?void 0:_.total)&&void 0!==t?t:0,C=bo(null!==(o=null===_||void 0===_?void 0:_.edges)&&void 0!==o?o:[]),I=C&&C.length>0,S=((null===_||void 0===_?void 0:_.pageInfo)||{}).hasPreviousPage,P="".concat(s.id,"-").concat(g.id,"-credits"),D=y[T];if(!I)return null;var N=[],E=[];return C.forEach((function(e){var n,t,i,a;"released"===(null===e||void 0===e||null===(n=e.node)||void 0===n||null===(t=n.title)||void 0===t||null===(i=t.productionStatus)||void 0===i||null===(a=i.currentProductionStage)||void 0===a?void 0:a.id)?E.push(e):N.push(e)})),(0,a.jsx)(Xo,{activeItemId:D?P:"none",className:"title-type-credits-accordion",dividers:"none",items:[{onToggleOff:function(){Na(d,"nm-flmg-hide-".concat(fa.TN[s.id])),x((0,Ce.Z)((0,i.Z)({},y),(0,Ao.Z)({},T,!1)))},onStateChange:function(){var e,n;(Na(d,"nm-flmg-show-".concat(fa.TN[s.id])),x((0,Ce.Z)((0,i.Z)({},y),(0,Ao.Z)({},T,!0))),null===_||void 0===_||null===(e=_.pageInfo)||void 0===e?void 0:e.hasNextPage)&&u({endCursor:null===_||void 0===_||null===(n=_.pageInfo)||void 0===n?void 0:n.endCursor,isUnreleased:!1,job:s.id,titleType:g.id,fetchAll:!0})},id:P,className:"accordion-item",collapseAriaLabel:h.formatMessage(uo.F.COLLAPSE,{target:g.text}),contentClassName:fa.bV,expandAriaLabel:h.formatMessage(uo.F.COLLAPSE,{target:g.text}),indentLevel:"pageMargin",labelClassName:"accordion-label",title:(0,a.jsxs)(f.InlineList,{showDividers:!0,children:[(0,a.jsx)(f.InlineListItem,{children:g.text}),(0,a.jsx)(f.InlineListItem,{className:"credits-total",children:b})]}),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.MetaDataList,{dividers:"between",children:[N.map((function(e,n){return(0,a.jsx)(Go,{className:"titleType-unreleased-credit",credit:e,index:n+1,nameId:d,nameText:c,requestContext:m},"nm-flmg-unrel-credit-".concat(s.id,"-").concat(n))})),E.map((function(e,n){return(0,a.jsx)(Eo,{className:"titleType-released-credit",categoryTitle:s.label,credit:e,index:n,nameId:d,nameText:c,requestContext:m},"nm-flmg-credit-".concat(s.id,"-").concat(n))}))]}),(0,a.jsx)(Bo,{pageInfo:null===_||void 0===_?void 0:_.pageInfo,nameId:d,jobId:s.id,titleTypeId:g.id,isUnreleased:!1,showCloseButton:S||C.length>fa.Uk,seeMoreLoadingState:p,onSeeMoreClick:u,accordionKey:T,accordionStateData:r})]})}],stickyHeaders:!0},"".concat(s.id,"-").concat(g.id,"-credits-accordion"))},Jo=function(e){var n,t,o,r=e.creditData,l=e.nameId,s=e.nameText,d=e.job,c=e.requestContext,u=e.onSeeMoreClick,m=e.seeMoreLoadingState,p=e.accordionStateData,g=(0,v.Z)(),h=p.accordionState,y=p.setAccordionState,x=Ia(d.id,!1),T=null===r||void 0===r||null===(n=r[x])||void 0===n?void 0:n.credits,_=h[x],b=null!==(t=null===T||void 0===T?void 0:T.total)&&void 0!==t?t:0,C=((null===T||void 0===T?void 0:T.pageInfo)||{}).hasPreviousPage,I=bo(null!==(o=null===T||void 0===T?void 0:T.edges)&&void 0!==o?o:[]),S=I&&I.length>0,P="".concat(d.id,"-previous-projects");return S?(0,a.jsx)(Xo,{activeItemId:_?P:"none",className:"date-credits-accordion",dividers:"none",items:[{onToggleOff:function(){Na(l,"nm-flmg-hide-".concat(fa.TN[d.id])),y((0,Ce.Z)((0,i.Z)({},h),(0,Ao.Z)({},x,!1)))},onStateChange:function(){var e,n;(Na(l,"nm-flmg-show-".concat(fa.TN[d.id])),y((0,Ce.Z)((0,i.Z)({},h),(0,Ao.Z)({},x,!0))),null===T||void 0===T||null===(e=T.pageInfo)||void 0===e?void 0:e.hasNextPage)&&u({endCursor:null===T||void 0===T||null===(n=T.pageInfo)||void 0===n?void 0:n.endCursor,isUnreleased:!1,job:d.id,titleType:void 0,fetchAll:!0})},id:P,className:"accordion-item",indentLevel:"pageMargin",collapseAriaLabel:g.formatMessage(uo.F.COLLAPSE,{target:g.formatMessage(fa.TY.PREVIOUS_PROJECTS)}),contentClassName:fa.bV,expandAriaLabel:g.formatMessage(uo.F.EXPAND,{target:g.formatMessage(fa.TY.PREVIOUS_PROJECTS)}),labelClassName:"accordion-label",title:(0,a.jsxs)(f.InlineList,{showDividers:!0,children:[(0,a.jsx)(f.InlineListItem,{children:g.formatMessage(fa.TY.PREVIOUS_PROJECTS)}),(0,a.jsx)(f.InlineListItem,{className:"credits-total",children:b})]}),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.MetaDataList,{dividers:"between",children:I.map((function(e,n){return(0,a.jsx)(Eo,{categoryTitle:d.label,credit:e,index:n,nameId:l,nameText:s,requestContext:c,releaseFilter:"PREVIOUS"},"nm-flmg-credit-".concat(d.id,"-").concat(n))}))}),(0,a.jsx)(Bo,{pageInfo:null===T||void 0===T?void 0:T.pageInfo,nameId:l,jobId:d.id,titleTypeId:void 0,isUnreleased:!1,showCloseButton:C||I.length>fa.Uk,seeMoreLoadingState:m,onSeeMoreClick:u,accordionKey:x,accordionStateData:p})]})}],stickyHeaders:!0}):null},Ko=function(e){var n,t,o,r=e.accordionStateData,l=e.creditData,s=e.job,d=e.nameId,c=e.nameText,u=e.onSeeMoreClick,m=e.requestContext,p=e.seeMoreLoadingState,g=(0,v.Z)(),h=r.accordionState,y=r.setAccordionState,x=Ia(s.id,!0),T=null===l||void 0===l||null===(n=l[x])||void 0===n?void 0:n.credits,_=h[x],b=null!==(t=null===T||void 0===T?void 0:T.total)&&void 0!==t?t:0,C=bo(null!==(o=null===T||void 0===T?void 0:T.edges)&&void 0!==o?o:[]),I=C&&C.length>0,S=((null===T||void 0===T?void 0:T.pageInfo)||{}).hasPreviousPage,P="".concat(s.id,"-upcoming-projects");return I?(0,a.jsx)(Xo,{activeItemId:_?P:"none",className:"date-unrel-credits-accordion",dividers:"none",items:[{onToggleOff:function(){Na(d,"nm-flmg-hide-".concat(fa.TN[s.id])),y((0,Ce.Z)((0,i.Z)({},h),(0,Ao.Z)({},x,!1)))},onStateChange:function(){var e,n;(Na(d,"nm-flmg-show-".concat(fa.TN[s.id])),y((0,Ce.Z)((0,i.Z)({},h),(0,Ao.Z)({},x,!0))),null===T||void 0===T||null===(e=T.pageInfo)||void 0===e?void 0:e.hasNextPage)&&u({endCursor:null===T||void 0===T||null===(n=T.pageInfo)||void 0===n?void 0:n.endCursor,isUnreleased:!0,job:s.id,titleType:void 0,fetchAll:!0})},id:P,className:"accordion-item",collapseAriaLabel:g.formatMessage(uo.F.COLLAPSE,{target:g.formatMessage(fa.TY.UPCOMING_PROJECTS)}),contentClassName:fa.bV,expandAriaLabel:g.formatMessage(uo.F.EXPAND,{target:g.formatMessage(fa.TY.UPCOMING_PROJECTS)}),indentLevel:"pageMargin",labelClassName:"accordion-label",title:(0,a.jsxs)(f.InlineList,{showDividers:!0,children:[(0,a.jsx)(f.InlineListItem,{children:g.formatMessage(fa.TY.UPCOMING_PROJECTS)}),(0,a.jsx)(f.InlineListItem,{className:"credits-total",children:b})]}),children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f.MetaDataList,{dividers:"between",className:"date-unrel-credits-list",children:C.map((function(e,n){return(0,a.jsx)(Go,{credit:e,nameId:d,nameText:c,index:n+1,requestContext:m},"nm-flmg-unrel-credit-".concat(s.id,"-").concat(n))}))}),(0,a.jsx)(Bo,{pageInfo:null===T||void 0===T?void 0:T.pageInfo,nameId:d,jobId:s.id,titleTypeId:void 0,isUnreleased:!0,showCloseButton:S||C.length>fa.Uk,seeMoreLoadingState:p,onSeeMoreClick:u,accordionKey:x,accordionStateData:r})]})}],stickyHeaders:!0}):null},Xo=(0,m.default)(f.Accordion).withConfig({componentId:"sc-5cecff0c-0"})($o(),(0,p.setPropertyToColorVar)("color","ipt-on-base-textSecondary-color"),(0,p.setPropertyToColorVar)("background","ipt-base-border-color"),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),(0,p.getSpacingVar)("ipt-pageMargin"),p.mediaQueries.breakpoints.above.l,(0,p.setPropertyToSpacingVar)("padding-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("padding-right","ipt-pageMargin"),(0,p.setTypographyType)("body"));function er(){var e=(0,u.Z)(["\n display: block;\n ","\n ","\n padding: "," 0px;\n\n .filmography-excluded-credits {\n cursor: pointer;\n }\n"]);return er=function(){return e},e}var nr=function(e){var n,t=e.job,i=e.sortMenuRef,o=(0,v.Z)();return 0===(null!==(n=null===t||void 0===t?void 0:t.count)&&void 0!==n?n:0)?null:(0,a.jsxs)(tr,{children:[(0,a.jsx)(a.Fragment,{children:"".concat(o.formatMessage(fa.TY.CREDITS_EXCLUDED)," ")}),(0,a.jsx)(f.TextLink,{className:"filmography-excluded-credits",onClick:function(){var e;return null===i||void 0===i||null===(e=i.current)||void 0===e?void 0:e.click()},text:o.formatMessage(fa.TY.UPDATE_FILTER_SELECTIONS)})]})},tr=m.default.div.withConfig({componentId:"sc-e58deb90-0"})(er(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),p.spacing.m),ir=t(97815),ar="filmographyData",or=["accordionState","allJobsSelected","creditData","excludedGenres","includedGenres","selectedJobs","showExpandAllAccordions","sortByDate","sortedPossibleTitleTypes"],rr=function(e){Object.keys(e).forEach((function(n){"nConst"!==n&&(0,ir.Ps)("".concat(ar,".").concat(n),(0,Ao.Z)({nConst:e.nConst},n,e[n]))}))},lr=function(e,n){var t,a;if((0,T.getIsBrowser)()){var o=function(){var e;return or.forEach((function(n){var t=(0,ir.PK)("".concat(ar,".").concat(n));t&&(e||(e={}),e.nConst&&t.nConst!==e.nConst||(e=(0,i.Z)({},e,t)))})),e}();if(o)if((null===o||void 0===o?void 0:o.nConst)!==e||"back_forward"!==String(null===(a=null===(t=null===performance||void 0===performance?void 0:performance.getEntriesByType("navigation"))||void 0===t?void 0:t[0])||void 0===a?void 0:a.type))or.forEach((function(e){(0,ir.VV)("".concat(ar,".").concat(e))}));else{var r=o.accordionState,l=o.allJobsSelected,s=o.creditData,d=o.excludedGenres,c=o.includedGenres,u=o.selectedJobs,m=o.showExpandAllAccordions,f=o.sortByDate,p=o.sortedPossibleTitleTypes,v=n.setAccordionState,g=n.setAllJobsSelected,h=n.setCreditDataAndTitleTypes,y=n.setExcludedGenres,x=n.setIncludedGenres,_=n.setSelectedJobs,b=n.setShowExpandAllAccordions,C=n.setSortByDate;sr(r)&&v(r,!1),sr(l)&&g(l,!1),sr(s)&&sr(p)&&h(s,p,!1),sr(d)&&y(d,!1),sr(c)&&x(c,!1),sr(u)&&_(u,!1),sr(m)&&b(m,!1),sr(f)&&C(f,!1),Na(e,"nm-flmg-use-session-store")}}},sr=function(e){return void 0!==e};function dr(){var e=(0,u.Z)(["\n display: block;\n margin-bottom: 0;\n margin-top: 1.25rem;\n ",";\n ",";\n"]);return dr=function(){return e},e}function cr(){var e=(0,u.Z)(["\n margin-top: ",";\n ",";\n ",";\n"]);return cr=function(){return e},e}function ur(){var e=(0,u.Z)(["\n ",";\n min-height: 20rem;\n text-align: center;\n\n .filmography-loader {\n height: 20rem;\n position: relative;\n }\n"]);return ur=function(){return e},e}function mr(){var e=(0,u.Z)(["\n content: '';\n ","\n ","\n ","\n display: block;\n box-sizing: border-box;\n width: calc(100% - ("," * 2));\n height: 1px;\n position: absolute;\n z-index: 10;\n left: 0;\n"]);return mr=function(){return e},e}function fr(){var e=(0,u.Z)(["\n position: relative;\n\n &::before {\n ","\n top: 0;\n }\n\n "," {\n &.hasExcludedCredits::after {\n ","\n bottom: 0;\n }\n }\n\n "," {\n border: 1px solid ",";\n ","\n ",";\n ",";\n\n &::before,\n &::after {\n content: none;\n }\n }\n\n ."," {\n margin-right: -",";\n }\n"]);return fr=function(){return e},e}function pr(){var e=(0,u.Z)(["\n margin-top: ",";\n margin-bottom: ",";\n"]);return pr=function(){return e},e}var vr=function(e,n){var t,i,a=null!==(t=e.count)&&void 0!==t?t:0,o=null!==(i=n.count)&&void 0!==i?i:0;return a-1&&n.push(n.splice(t,1)[0]);var i=n.findIndex((function(e){return"thanks"===e.id}));i>-1&&n.push(n.splice(i,1)[0]);var a=n.findIndex((function(e){return"archive_footage"===e.id}));return a>-1&&n.push(n.splice(a,1)[0]),n},hr=m.default.div.withConfig({componentId:"sc-56ff4734-0"})(dr(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin")),yr=(0,m.default)(f.MetaDataList).withConfig({componentId:"sc-56ff4734-1"})(cr(),p.spacing.m,(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin")),xr=m.default.div.withConfig({componentId:"sc-56ff4734-2"})(ur(),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin")),Tr=(0,m.css)(mr(),(0,p.setPropertyToColorVar)("background","ipt-base-border-color"),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),(0,p.getSpacingVar)("ipt-pageMargin")),_r=m.default.div.withConfig({componentId:"sc-56ff4734-3"})(fr(),Tr,p.mediaQueries.breakpoints.below.l,Tr,p.mediaQueries.breakpoints.above.l,(0,p.getColorVar)("ipt-base-border-color"),(0,p.setPropertyToShapeVar)("border-radius","ipt-cornerRadius"),(0,p.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"),(0,p.setPropertyToSpacingVar)("margin-right","ipt-pageMargin"),fa.kA.PromptTrigger,p.spacing.s),br=(0,m.default)(f.Title).withConfig({componentId:"sc-56ff4734-4"})(pr(),p.spacing.m,p.spacing.xs),Cr=function(e){var n,t,r,l,s,d=(0,v.Z)(),u=(0,h.n)(),m=(0,Fn.B)().context,p=(0,Te.hg)({weblabID:c.lh.IMDB_YOU_MAY_KNOW_THEM_FROM_919392,treatments:{T1:!0}}),g=(0,o.useState)(function(e,n){if(n&&e){var t,i,a,o,r=new Set;return(null!==(i=e.releasedPrimaryCredits)&&void 0!==i?i:[]).forEach((function(e){var n,t;(null!==(t=null===e||void 0===e||null===(n=e.credits)||void 0===n?void 0:n.edges)&&void 0!==t?t:[]).forEach((function(e){var n,t,i,a;return(null===e||void 0===e||null===(n=e.node)||void 0===n||null===(t=n.title)||void 0===t?void 0:t.id)&&r.add(null===e||void 0===e||null===(i=e.node)||void 0===i||null===(a=i.title)||void 0===a?void 0:a.id)}))})),(null!==(a=e.unreleasedPrimaryCredits)&&void 0!==a?a:[]).forEach((function(e){var n,t;(null!==(t=null===e||void 0===e||null===(n=e.credits)||void 0===n?void 0:n.edges)&&void 0!==t?t:[]).forEach((function(e){var n,t,i,a;return(null===e||void 0===e||null===(n=e.node)||void 0===n||null===(t=n.title)||void 0===t?void 0:t.id)&&r.add(null===e||void 0===e||null===(i=e.node)||void 0===i||null===(a=i.title)||void 0===a?void 0:a.id)}))})),(null!==(o=null===(t=e.knownForFeature)||void 0===t?void 0:t.edges)&&void 0!==o?o:[]).forEach((function(e){var n,t;(null===e||void 0===e||null===(n=e.node)||void 0===n||null===(t=n.title)||void 0===t?void 0:t.id)&&r.add(e.node.title.id)})),Array.from(r).map((function(e){return{id:e}}))}return[]}(e.data,u)),y=g[0],T=g[1],_=function(e){return T((0,Xi.Z)(y).concat((0,Xi.Z)(e)))},b=(0,ma.b)(y.slice(0,250));(0,o.useEffect)((function(){(null===b||void 0===b?void 0:b.data)&&T(y.slice(250))}),[null===b||void 0===b?void 0:b.data]);var C=function(e){var n,t,i,a,o,r,l,s,d,c,u,m,f,p,v;if(e){var g,h,y,x,T,_,b,C,I=String(null===e||void 0===e?void 0:e.id),S=String(null===(n=e.nameText)||void 0===n?void 0:n.text),P=e.primaryImage?{caption:null!==(g=null===(t=e.primaryImage)||void 0===t||null===(i=t.caption)||void 0===i?void 0:i.plainText)&&void 0!==g?g:"",maxHeight:null!==(h=null===(a=e.primaryImage)||void 0===a?void 0:a.height)&&void 0!==h?h:0,maxWidth:null!==(y=null===(o=e.primaryImage)||void 0===o?void 0:o.width)&&void 0!==y?y:0,url:null!==(x=null===(r=e.primaryImage)||void 0===r?void 0:r.url)&&void 0!==x?x:""}:void 0,D=null!==(T=null===e||void 0===e||null===(l=e.creditSummary)||void 0===l||null===(s=l.totalCredits)||void 0===s?void 0:s.total)&&void 0!==T?T:0,N=(null!==(_=null===e||void 0===e||null===(d=e.creditSummary)||void 0===d||null===(c=d.totalCredits)||void 0===c||null===(u=c.restriction)||void 0===u?void 0:u.unrestrictedTotal)&&void 0!==_?_:0)-D>0,E=(null!==(b=null===e||void 0===e?void 0:e.jobs)&&void 0!==b?b:[]).reduce((function(e,n){var t,i,a,o;return Number(null===n||void 0===n||null===(t=n.credits)||void 0===t?void 0:t.total)>0&&e.push({count:Number(null===n||void 0===n||null===(i=n.credits)||void 0===i?void 0:i.total),id:String(null===n||void 0===n||null===(a=n.category)||void 0===a?void 0:a.id),label:String(null===n||void 0===n||null===(o=n.category)||void 0===o?void 0:o.text)}),e}),[]),M=E.reduce((function(e,n){return e.add(n.id)}),new Set),j=e.primaryProfessions,L=e.releasedPrimaryCredits,w=e.unreleasedPrimaryCredits,k=null!==(C=null===(m=null===j||void 0===j?void 0:j.find((function(e){var n;return M.has(null===(n=e.category)||void 0===n?void 0:n.id)})))||void 0===m||null===(f=m.category)||void 0===f?void 0:f.id)&&void 0!==C?C:"",A=[],Z={},O=D<=10;E.forEach((function(e){Z[Ia(e.id,!0)]=O,Z[Ia(e.id,!1)]=O||k===e.id}));var R={};null===j||void 0===j||j.forEach((function(e){var n=E.find((function(n){var t;return(null===e||void 0===e||null===(t=e.category)||void 0===t?void 0:t.id)===n.id}));n&&A.push(n),null===w||void 0===w||w.forEach((function(n){if(n.category.id===e.category.id){var t,i,a,o=Ia(n.category.id,!0);(null===n||void 0===n?void 0:n.credits)&&(null===n||void 0===n||null===(t=n.credits)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.length)&&(R[o]={creditCategory:String(null===n||void 0===n||null===(a=n.category)||void 0===a?void 0:a.text),credits:null===n||void 0===n?void 0:n.credits})}})),null===L||void 0===L||L.forEach((function(n){if(n.category.id===e.category.id){var t,i,a,o=Ia(n.category.id,!1);(null===n||void 0===n?void 0:n.credits)&&(null===n||void 0===n||null===(t=n.credits)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.length)&&(R[o]={creditCategory:String(null===n||void 0===n||null===(a=n.category)||void 0===a?void 0:a.text),credits:null===n||void 0===n?void 0:n.credits})}}))}));var B,Y,F,q=0===Object.keys(R).length&&D>0,V=q?E:A,U=(null!==(B=null===e||void 0===e||null===(p=e.creditSummary)||void 0===p?void 0:p.genres)&&void 0!==B?B:[]).map((function(e){var n,t,i;return null!==(Y=null===e||void 0===e||null===(n=e.genre)||void 0===n||null===(t=n.displayableProperty)||void 0===t||null===(i=t.value)||void 0===i?void 0:i.plainText)&&void 0!==Y?Y:""})).filter((function(e){return Boolean(e)})),z=(null!==(F=null===e||void 0===e||null===(v=e.creditSummary)||void 0===v?void 0:v.titleTypeCategories)&&void 0!==F?F:[]).map((function(e){var n,t;return{id:null===e||void 0===e||null===(n=e.titleTypeCategory)||void 0===n?void 0:n.id,text:null===e||void 0===e||null===(t=e.titleTypeCategory)||void 0===t?void 0:t.text}}));return q||Object.keys(Z).forEach((function(e){if(Z[e]&&!R[e]){var n=Ia(V[0].id,!0);Z[n]=!0}})),{creditData:R,initialAccordionState:Z,initialSelectedJobs:V,jobData:E,nameId:I,nameImage:P,nameText:S,possibleGenres:U,possibleTitleTypes:z,totalCredits:D,requiresCreditLoadOnMount:q,showInDevProUpsell:N}}}(e.data)||{},I=C.nameId,S=void 0===I?"":I,P=C.nameImage,D=C.nameText,N=void 0===D?"":D,E=C.creditData,M=void 0===E?{}:E,j=C.initialAccordionState,L=void 0===j?{}:j,w=C.initialSelectedJobs,k=void 0===w?[]:w,A=C.jobData,Z=void 0===A?[]:A,O=C.possibleGenres,R=void 0===O?[]:O,B=C.possibleTitleTypes,Y=void 0===B?[]:B,F=C.totalCredits,q=void 0===F?0:F,V=C.requiresCreditLoadOnMount,U=void 0!==V&&V,z=C.showInDevProUpsell,G=(0,ta.a)(e.data),H=1===Z.length||q<=20&&k.length===Z.length,Q=(0,o.useState)(!0),$=Q[0],W=Q[1],J=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W(e),n&&rr({nConst:S,sortByDate:e})},K=(0,o.useState)(!1),X=K[0],ee=K[1],ne=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ee(e),n&&rr({nConst:S,allJobsSelected:e})},te=(0,o.useState)(k),ie=te[0],ae=te[1],oe=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ae(e),n&&rr({nConst:S,selectedJobs:e})},re=(0,o.useState)([]),le=re[0],se=re[1],de=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];se(e),n&&rr({nConst:S,includedGenres:e})},ce=(0,o.useState)([]),ue=ce[0],me=ce[1],fe=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];me(e),n&&rr({nConst:S,excludedGenres:e})},pe=(0,o.useState)({creditData:M,hasGenreSelectionsChanged:!1,paginatedQueryInfo:void 0,pendingJobsToFetch:[],shouldIssueRequest:U,sortedPossibleTitleTypes:{}}),ve=pe[0],ge=pe[1],xe=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];ge(e),n&&rr({nConst:S,creditData:e.creditData,sortedPossibleTitleTypes:e.sortedPossibleTitleTypes})},_e=(0,o.useState)(L),be=_e[0],Ie=_e[1],Se=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Ie(e),n&&rr({nConst:S,accordionState:e})},Pe=(0,o.useState)(Object.values(L).some((function(e){return!e}))),De=Pe[0],Ne=Pe[1],Ee=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Ne(e),n&&rr({nConst:S,showExpandAllAccordions:e})},Me=function(e,n){!function(e,n,t,i,a,o,r){if(n(e),t||Object.values(e).some((function(e){return e}))){if(t){var l=ja(o,a,r);Object.keys(l).every((function(n){return e[n]}))&&i(!1)}}else i(!0)}(e,Se,De,Ee,null!==n&&void 0!==n?n:X?Z:ie,$,Y)},je=(0,o.useRef)(null),Le=(0,x.Z)((0,ht.E)({query:va(Sa(ie,ve.creditData,$,Y,X,Z,ve.pendingJobsToFetch,ve.hasGenreSelectionsChanged),Y.map((function(e){return e.id})),$,X,le,ue,ve.paginatedQueryInfo),variables:{id:S,includeUserRating:!1},context:{personalized:!1,serverSideCacheable:!0},pause:!ve.shouldIssueRequest}),1)[0],we=Le.data,ke=Le.error,Ae=Le.fetching;(0,o.useEffect)((function(){if(we){var e=X?Z:ie,n=function(e,n,t,a,o,r,l,s){var d=(0,i.Z)({},n),c=new Set;if(r)if(o){var u,m,f=null===e||void 0===e||null===(u=e.name)||void 0===u?void 0:u.unreleasedCredits,p=null===e||void 0===e||null===(m=e.name)||void 0===m?void 0:m.releasedCredits;null===f||void 0===f||f.forEach((function(e){var n,t,i,a,o=Ia(null===e||void 0===e||null===(n=e.category)||void 0===n?void 0:n.id,!0);(null===e||void 0===e?void 0:e.credits)&&(null===e||void 0===e||null===(t=e.credits)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.length)&&(d[o]={creditCategory:String(null===e||void 0===e||null===(a=e.category)||void 0===a?void 0:a.text),credits:null===e||void 0===e?void 0:e.credits},e.credits.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c))})),null===p||void 0===p||p.forEach((function(e){var n,t,i,a,o=Ia(null===e||void 0===e||null===(n=e.category)||void 0===n?void 0:n.id,!1);(null===e||void 0===e?void 0:e.credits)&&(null===e||void 0===e||null===(t=e.credits)||void 0===t||null===(i=t.edges)||void 0===i?void 0:i.length)&&(d[o]={creditCategory:String(null===e||void 0===e||null===(a=e.category)||void 0===a?void 0:a.text),credits:null===e||void 0===e?void 0:e.credits},e.credits.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c))}))}else(0,Xi.Z)(l).splice(0,2).forEach((function(n){a.forEach((function(t){var i,a=Ia(n.id,!1,t),o=null===e||void 0===e||null===(i=e.name)||void 0===i?void 0:i[a];o&&(d[a]={creditCategory:String(n.id),credits:o},o.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c))}))}));else t.forEach((function(n){if(o){var t,i,r=Ia(n.id,!0),l=null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t[r];l&&(d[r]={creditCategory:String(n.id),credits:l},l.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c));var s=Ia(n.id,!1),u=null===e||void 0===e||null===(i=e.name)||void 0===i?void 0:i[s];u&&(d[s]={creditCategory:String(n.id),credits:u},u.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c))}else a.map((function(t){var i,a=Ia(n.id,!1,t),o=null===e||void 0===e||null===(i=e.name)||void 0===i?void 0:i[a];o&&(d[a]={creditCategory:String(n.id),credits:o},o.edges.map((function(e){return e.node.title.id})).filter(Boolean).forEach(c.add,c))}))}));return c.size&&s(Array.from(c).map((function(e){return{id:e}}))),d}(we,ve.creditData,e,Y.map((function(e){return e.id})),$,X,ve.pendingJobsToFetch,_),t=(0,Ce.Z)((0,i.Z)({},ve),{creditData:n,hasGenreSelectionsChanged:!1,shouldIssueRequest:!1});if(!$){var a=(0,i.Z)({},ve.sortedPossibleTitleTypes);Sa(ie,ve.creditData,$,Y,X,Z,ve.pendingJobsToFetch,ve.hasGenreSelectionsChanged).forEach((function(e){if(!a[e]){var t=[];Y.forEach((function(a){var o,r,l=Ia(e,!1,a.id),s=null===n||void 0===n||null===(o=n[l])||void 0===o?void 0:o.credits,d=null!==(r=null===s||void 0===s?void 0:s.total)&&void 0!==r?r:0;t.length?t.every((function(e,n){var o;return(null!==(o=e.count)&&void 0!==o?o:0)0&&(0,a.jsx)(na.ZP,{knownForData:G,nameId:S,nameImage:P,nameText:N}),p&&(0,a.jsx)(ca,{nameId:S}),Ye&&(0,a.jsx)(zt.ZP,{"data-test-id":zn.z.INLINE_50_SMALL,name:ea.AD_SLOT_NAMES.INLINE50}),(0,a.jsxs)(f.PageSection,{children:[(0,a.jsx)(Ui.O,{title:{id:"name_main_filmography_title",defaultMessage:"Credits"},editHref:Fe,"data-testid":fa.z7.FilmographySection}),(0,a.jsx)(lo,{allJobsSelected:X,excludedGenres:ue,includedGenres:le,genres:R,jobData:H?[]:gr(Z),nameText:N,onExcludeGenre:function(e,n){var t=function(e,n,t,i){var a=(0,Xi.Z)(t);if(n){var o=a.indexOf(e);a.splice(o,1),Na(i,"nm-flmg-incl-ff-gen-".concat(e.substring(0,3).toLowerCase()))}else a.push(e),Na(i,"nm-flmg-excl-ff-gen-".concat(e.substring(0,3).toLowerCase()));return a}(e,n,ue,S);fe(t),xe((0,Ce.Z)((0,i.Z)({},ve),{hasGenreSelectionsChanged:!0,pendingJobsToFetch:X&&!$?(0,Xi.Z)(Z):[],shouldIssueRequest:Ae||0!==ie.length||X}))},onIncludeGenre:function(e,n){var t=function(e,n,t,i){var a=(0,Xi.Z)(t);if(n){var o=a.indexOf(e);a.splice(o,1),Na(i,"nm-flmg-rmv-incl-gen-".concat(e.substring(0,3).toLowerCase()))}else a.push(e),Na(i,"nm-flmg-incl-gen-".concat(e.substring(0,3).toLowerCase()));return a}(e,n,le,S);de(t),xe((0,Ce.Z)((0,i.Z)({},ve),{hasGenreSelectionsChanged:!0,pendingJobsToFetch:X&&!$?(0,Xi.Z)(Z):[],shouldIssueRequest:Ae||0!==ie.length||X}))},onJobSelect:function(e,n){var t=function(e,n,t,i,a,o,r){var l=(0,Xi.Z)(t),s={};if(n)l.unshift(e),Na(a,"nm-flmg-incl-".concat(fa.TN[e.id]));else{var d=l.findIndex((function(n){return n.id===e.id}));l.splice(d,1),Na(a,"nm-flmg-excl-".concat(fa.TN[e.id]))}return i?l.forEach((function(t){var i=Ia(t.id,!0),a=Ia(t.id,!1);e.id===t.id?n&&(s[i]=!0,s[a]=!0):(s[i]=Boolean(r[i]),s[a]=Boolean(r[a]))})):l.forEach((function(t){o.forEach((function(i){var a=Ia(t.id,!1,i.id);e.id===t.id?n&&(s[a]=!0):s[a]=Boolean(r[a])}))})),{newAccordionState:s,newJobs:l}}(e,n,ie,$,S,Y,be),a=t.newAccordionState,o=t.newJobs,r=0===o.length,l=Sa(o,ve.creditData,$,Y,r,Z,ve.pendingJobsToFetch).length,s=void 0;!n||l||De||(s=Ma(ve.creditData,[e],$,ve.sortedPossibleTitleTypes,a)),ne(r),oe(o),Me(r?ja($,Z,Y):a,o),xe((0,Ce.Z)((0,i.Z)({},ve),{paginatedQueryInfo:null!==s&&void 0!==s?s:ve.paginatedQueryInfo,pendingJobsToFetch:r&&!$?(0,Xi.Z)(Z):[],shouldIssueRequest:Boolean(Ae||l||r)}))},onSortSelect:function(e){var n=function(e,n,t){var i=!n&&e===fa.ER.Date||n&&e===fa.ER.TitleType;if(i){var a=e===fa.ER.Date;Na(t,"nm-flmg-sort-".concat(a?"date":"ttc"))}return i}(e,$,S);if(n){var t=e===fa.ER.Date;J(t),Me({}),xe((0,Ce.Z)((0,i.Z)({},ve),{creditData:{},pendingJobsToFetch:!t&&X?(0,Xi.Z)(Z):[],shouldIssueRequest:!qe||Ae}))}},selectedJobs:H?[]:ie,sortByDate:$,sortMenuRef:je}),!H&&(0,a.jsx)(hr,{children:(0,a.jsx)(f.TextLink,{"data-testid":"nm-flmg-all-accordion-expander",onClick:function(){var e=De,n=De?ja($,X?Z:ie,Y):{};Na(S,e?"nm-flmg-show-all":"nm-flmg-hide-all"),Se(n),Ee(!e);var t=e&&Ma(ve.creditData,ie,$,ve.sortedPossibleTitleTypes,n);t&&xe((0,Ce.Z)((0,i.Z)({},ve),{paginatedQueryInfo:t}))},text:d.formatMessage(De?fa.TY.EXPAND_ALL:fa.TY.COLLAPSE_ALL)})}),Ae&&(0,a.jsx)(xr,{children:(0,a.jsx)(f.Loader,{className:"filmography-loader"})}),ke&&!we&&!Ae&&(0,a.jsx)(ua.ZP,{error:ke,errorMessage:d.formatMessage(fa.TY.ERROR_MESSAGE),name:"Filmography",canRetry:!0,onClickRetry:function(){return xe((0,Ce.Z)((0,i.Z)({},ve),{shouldIssueRequest:!0,hasGenreSelectionsChanged:!0}))}}),Object.keys(ve.creditData).length>0&&!qe&&!Ae&&(!ke||ke&&we)&&(X?Z:ie).map((function(e,n){var t,i,r,l,s,d,c,u=function(e,n,t,i){var a;if(e){var o,r,l,s,d=Ia(n,!1),c=null===t||void 0===t||null===(o=t[d])||void 0===o||null===(r=o.credits)||void 0===r?void 0:r.edges,u=c&&c.length>0,m=Ia(n,!0),f=null===t||void 0===t||null===(l=t[m])||void 0===l||null===(s=l.credits)||void 0===s?void 0:s.edges,p=f&&f.length>0;a=!u&&!p}else{var v=!1;i.every((function(e){var i,a,o=Ia(n,!1,e.id),r=null===t||void 0===t||null===(i=t[o])||void 0===i||null===(a=i.credits)||void 0===a?void 0:a.edges;return!(r&&r.length>0)||(v=!0,!1)})),a=!v}return a}($,e.id,ve.creditData,Y);return(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(br,{className:"filmo-section-".concat(e.id),children:e.label}),$&&(0,a.jsxs)(_r,{className:u?"hasExcludedCredits":"",children:[(0,a.jsx)(Ko,{accordionStateData:{accordionState:be,setAccordionState:Me},creditData:ve.creditData,job:e,nameId:S,nameText:N,requestContext:m,onSeeMoreClick:Be,seeMoreLoadingState:Ea(ve.paginatedQueryInfo,Boolean(Re&&!Oe&&(null===(t=ve.creditData[Ia(e.id,!0)])||void 0===t||null===(i=t.credits)||void 0===i||null===(r=i.pageInfo)||void 0===r?void 0:r.hasNextPage)),e.id,!0)}),(0,a.jsx)(Jo,{accordionStateData:{accordionState:be,setAccordionState:Me},creditData:ve.creditData,nameId:S,nameText:N,job:e,requestContext:m,onSeeMoreClick:Be,seeMoreLoadingState:Ea(ve.paginatedQueryInfo,Boolean(Re&&!Oe&&(null===(l=ve.creditData[Ia(e.id,!1)])||void 0===l||null===(s=l.credits)||void 0===s||null===(d=s.pageInfo)||void 0===d?void 0:d.hasNextPage)),e.id,!1)}),u&&(0,a.jsx)(nr,{job:e,sortMenuRef:je})]}),!$&&(0,a.jsxs)(_r,{className:u?"hasExcludedCredits":"",children:[(null!==(c=ve.sortedPossibleTitleTypes[e.id])&&void 0!==c?c:[]).map((function(n){var t,i,o;return(0,a.jsx)(Wo,{accordionStateData:{accordionState:be,setAccordionState:Me},creditData:ve.creditData,job:e,nameId:S,nameText:N,titleType:n,onSeeMoreClick:Be,requestContext:m,seeMoreLoadingState:Ea(ve.paginatedQueryInfo,Boolean(Re&&!Oe&&(null===(t=ve.creditData[Ia(e.id,!1,n.id)])||void 0===t||null===(i=t.credits)||void 0===i||null===(o=i.pageInfo)||void 0===o?void 0:o.hasNextPage)),e.id,!1,n.id)},"nm-flmg-".concat(e.id,"-").concat(n.id,"-credits"))})),u&&(0,a.jsx)(nr,{job:e,sortMenuRef:je})]})]},"filmo-".concat(e,"-").concat(n))})),z&&(0,a.jsx)(yr,{children:(0,a.jsx)(f.MetaDataListItem,{"data-testid":"nm_flmg_in_dev_pro_upsell",labelLink:"https://pro.imdb.com/name/".concat(m.pageConst,"/?ref_=cons_nm_indevp&rf=cons_nm_indevp"),labelTitle:d.formatMessage({id:"name_main_pro_filmo_filter",defaultMessage:"In-development projects at IMDbPro"}),labelLinkType:"internal"})})]})]})})};function Ir(){var e=(0,u.Z)(['\n fragment NameMainFilmography on Name {\n id\n nameText {\n text\n }\n primaryImage {\n caption {\n plainText\n }\n height\n width\n url\n }\n # pulled to organize filmo\n primaryProfessions {\n category {\n text\n id\n }\n }\n releasedPrimaryCredits: creditCategories(\n filter: {\n professions: PRIMARY_PROFESSIONS_ONLY\n projectStatus: ["PREVIOUS"]\n }\n ) {\n category {\n id\n text\n }\n credits(first: 15) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n }\n unreleasedPrimaryCredits: creditCategories(\n filter: {\n professions: PRIMARY_PROFESSIONS_ONLY\n projectStatus: ["UPCOMING"]\n }\n sort: { by: RELEASE_DATE, order: ASC }\n ) {\n category {\n id\n text\n }\n credits(first: 10) {\n total\n edges {\n node {\n ...CreditMetaData\n title {\n ...CreditCard\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n endCursor\n }\n }\n }\n jobs: creditCategories {\n category {\n id\n text\n }\n credits(first: 0) {\n total\n }\n }\n creditSummary {\n totalCredits {\n total\n restriction {\n unrestrictedTotal\n explanations {\n text\n reason\n }\n }\n }\n titleTypeCategories {\n total\n titleTypeCategory {\n id\n text\n }\n }\n genres {\n total\n genre {\n id\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n # including knownFor\n ...NameKnownFor\n }\n ',"\n ","\n ","\n "]);return Ir=function(){return e},e}var Sr,Pr,Dr,Nr,Er={component:function(e){return(0,a.jsx)(Cr,(0,i.Z)({},e))},fragment:{name:"NameMainFilmography",gql:b()(Ir(),Wi.pj,Ji.o,Ki.w)},shouldInstrumentMetrics:!0};!function(e){e.PersonalDetailsAlternativeNames="nm_pdt_an",e.PersonalDetailsOfficialSites="nm_pdt_osites",e.PersonalDetailsBirthLocationSearch="nm_pdt_bth_place",e.PersonalDetailsBirthMonthDay="nm_ov_bth_monthday",e.PersonalDetailsBirthYear="nm_ov_bth_year",e.PersonalDetailsDeathMonthDay="nm_ov_dth_monthday",e.PersonalDetailsDeathYear="nm_ov_dth_year",e.PersonalDetailsDeathLocationSearch="nm_pdt_dth_place",e.PersonalDetailsSpouses="nm_pdt_sp",e.PersonalDetailsChildren="nm_pdt_ch",e.PersonalDetailsParents="nm_pdt_pa",e.PersonalDetailsOtherRelations="nm_pdt_re",e.PersonalDetailsOtherWorks="nm_pdt_wrk",e.PersonalDetailsPublicityListings="nm_pdt_pub"}(Sr||(Sr={})),function(e){e.PersonDetailsOverflowExpand="overflow-content-expand",e.PersonDetailsOverflowCollapse="overflow-content-collapse"}(Pr||(Pr={})),function(e){e.PersonalDetailsSection="nm_pd_sec",e.PersonalDetailsHeader="nm_pd_hd",e.PersonalDetailsAlternativeNames="nm_pd_ans",e.PersonalDetailsAlternativeName="nm_pd_an",e.PersonalDetailsBirthLocation="nm_pd_bl",e.PersonalDetailsDeathLocation="nm_pd_dl",e.PersonalDetailsHeight="nm_pd_he",e.PersonalDetailsSpouses="nm_pd_sps",e.PersonalDetailsSpouse="nm_pd_sp",e.PersonalDetailsChildren="nm_pd_ch",e.PersonalDetailsParents="nm_pd_pa",e.PersonalDetailsOtherRelations="nm_pd_re",e.PersonalDetailsOtherWorks="nm_pd_wrk",e.PersonalDetailsPublicityListings="nm_pd_pub"}(Dr||(Dr={})),function(e){e.nameFilmBiography="#filmBio",e.namePrintBiography="#printBio",e.namePortrayal="#portrayal",e.publicityInterview="#interview",e.publicityArticle="#article",e.publicityPictorial="#pictorial",e.publicityMagazineCover="#magCover"}(Nr||(Nr={}));var Mr="nameFilmBiography",jr="namePrintBiography",Lr="namePortrayal",wr="publicityInterview",kr="publicityArticle",Ar="publicityPictorial",Zr="publicityMagazineCover";function Or(){var e=(0,u.Z)(["\n fragment NameRelation on NameRelationsConnection {\n total\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n relationshipType {\n id\n text\n }\n relationName {\n name {\n id\n }\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n }\n"]);return Or=function(){return e},e}function Rr(){var e=(0,u.Z)(["\n fragment NameMainPDTFamily on Name {\n parents: relations(first: 1, filter: { relationshipTypes: PARENTS }) {\n ...NameRelation\n }\n children: relations(first: 1, filter: { relationshipTypes: CHILDREN }) {\n ...NameRelation\n }\n others: relations(first: 1, filter: { relationshipTypes: OTHERS }) {\n ...NameRelation\n }\n }\n ","\n"]);return Rr=function(){return e},e}function Br(){var e=(0,u.Z)(["\n query NameRelationsPaginationQuery(\n $const: ID!\n $relationFilter: [RelationshipTypeFilter!]\n $after: ID!\n ) {\n name(id: $const) {\n paginatedRelations: relations(\n first: 250\n after: $after\n filter: { relationshipTypes: $relationFilter }\n ) {\n ...NameRelation\n }\n }\n }\n ","\n"]);return Br=function(){return e},e}var Yr=b()(Or()),Fr=b()(Rr(),Yr),qr=b()(Br(),Yr),Vr={children:{filter:ge.EN.Children,pageActionExpand:Pr.PersonDetailsOverflowExpand,pageActionCollapse:Pr.PersonDetailsOverflowCollapse,refTag:Sr.PersonalDetailsChildren,testId:Dr.PersonalDetailsChildren,messageId:"common_children",label:"Children",includeCategory:!1},parents:{filter:ge.EN.Parents,pageActionExpand:Pr.PersonDetailsOverflowExpand,pageActionCollapse:Pr.PersonDetailsOverflowCollapse,refTag:Sr.PersonalDetailsParents,testId:Dr.PersonalDetailsParents,messageId:"common_parents",label:"Parents",includeCategory:!1},others:{filter:ge.EN.Others,pageActionExpand:Pr.PersonDetailsOverflowExpand,pageActionCollapse:Pr.PersonDetailsOverflowCollapse,refTag:Sr.PersonalDetailsOtherRelations,testId:Dr.PersonalDetailsOtherRelations,messageId:"common_relatives",label:"Relatives",includeCategory:!0}},Ur=function(e,n,t,i){return e.map((function(e){var a,o=e.node.relationName,r=null===o||void 0===o?void 0:o.displayableProperty.value.plainText;return{text:r&&""!==r?r:i,href:(null===o||void 0===o||null===(a=o.name)||void 0===a?void 0:a.id)?"/name/".concat(o.name.id,"/?ref_=").concat(t):void 0,subText:n&&e.node.relationshipType.text&&"(".concat(e.node.relationshipType.text,")")}}))},zr=function(e){var n=(0,v.Z)(),t=n.formatMessage({id:"common_unknown",defaultMessage:"Unknown"}),i=e.id,r=e.type,l=e.data,s=l.pageInfo,d=l.edges,c=l.total,u=Ur(d,Vr[r].includeCategory,Vr[r].refTag,t),m=(0,o.useState)(!1),p=m[0],g=m[1],h=(0,o.useState)(!1),y=h[0],T=h[1],_=(0,o.useState)({hasNextPage:s.hasNextPage,endCursor:s.endCursor}),b=_[0],C=_[1],I=(0,o.useState)(u),S=I[0],P=I[1],D=(0,x.Z)((0,ht.E)({context:{serverSideCacheable:!0,personalized:!1},query:qr,variables:{const:i,relationFilter:Vr[r].filter,after:b.endCursor},pause:!y}),1)[0],N=D.data,E=D.fetching;(0,o.useEffect)((function(){var e,n;(null===N||void 0===N||null===(e=N.name)||void 0===e||null===(n=e.paginatedRelations)||void 0===n?void 0:n.edges)&&(P((0,Xi.Z)(S||[]).concat((0,Xi.Z)(Ur(N.name.paginatedRelations.edges,Vr[r].includeCategory,Vr[r].refTag,t)||[]))),C({hasNextPage:N.name.paginatedRelations.pageInfo.hasNextPage,endCursor:N.name.paginatedRelations.pageInfo.endCursor}))}),[N]),(0,o.useEffect)((function(){p&&b.hasNextPage?T(!0):T(!1)}),[p,b.hasNextPage]);var M=(0,Qt.q)(Vr[r].pageActionExpand,$t.qB.ACTION_ONLY,Vr[r].refTag),j=(0,Qt.q)(Vr[r].pageActionCollapse,$t.qB.ACTION_ONLY,Vr[r].refTag),L=n.formatMessage({id:Vr[r].messageId,defaultMessage:Vr[r].label},{count:c});return u&&u[0]?s.hasNextPage?(0,a.jsx)(f.ExpandableMetaDataListItem,{"data-testid":Vr[r].testId,className:"ex",expanded:p,labelTitle:L,labelLinkAriaLabel:n.formatMessage(uo.F.EXPAND,{target:L}),isLoading:E,stackedListItem:!0,listContent:p?S:u,onListItemClick:function(){p?j():M(),g(!p)}}):(0,a.jsx)(f.MetaDataListItem,{labelTitle:L,listContent:S,className:"s","data-testid":Vr[r].testId}):null},Gr=function(e){var n=e.id,t=e.familyData,i=t.children,o=t.parents,r=t.others;return(0,a.jsxs)(a.Fragment,{children:[i&&(0,a.jsx)(zr,{id:n,type:"children",data:i}),o&&(0,a.jsx)(zr,{id:n,type:"parents",data:o}),r&&(0,a.jsx)(zr,{id:n,type:"others",data:r})]})},Hr=t(23652);function Qr(){var e=(0,u.Z)(['\n fragment NameMainPersonalDetailsOfficialSites on Name {\n personalDetailsExternalLinks: externalLinks(\n first: 2\n filter: { categories: ["official"] }\n ) {\n edges {\n node {\n url\n label\n }\n }\n total\n }\n }\n']);return Qr=function(){return e},e}var $r=b()(Qr()),Wr=function(e){var n=e.nameId,t=e.officialSites,i="/name/".concat(n,"/externalsites?ref_=").concat(Sr.PersonalDetailsOfficialSites,"#official");return(0,a.jsx)(Hr.rC,{id:n,refTag:Sr.PersonalDetailsOfficialSites,seeMoreLink:i,officialSites:t})};function Jr(){var e=(0,u.Z)(['\n fragment NameMainPersonalDetailsPublicityListings on Name {\n publicityListings(first: 0) {\n total\n }\n nameFilmBiography: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n namePrintBiography: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n namePortrayal: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n publicityInterview: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n publicityArticle: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n publicityPictorial: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n publicityMagazineCover: publicityListings(\n first: 0\n filter: { categories: ["','"] }\n ) {\n total\n }\n }\n']);return Jr=function(){return e},e}var Kr=b()(Jr(),Mr,jr,Lr,wr,kr,Ar,Zr),Xr=function(e){var n=e.nameId,t=e.publicityListingsCategories,i=(0,v.Z)(),o="/name/".concat(n,"/publicity/?ref_=").concat(Sr.PersonalDetailsPublicityListings),r=(0,Me.N)({id:"name_main_personal_details_publicity_listings",defaultMessage:"Publicity listings"}),l=[];return Object.keys(t).map((function(e){var n=t[e],a=function(e,n,t,i){switch(e){case Mr:return{text:i.formatMessage({id:"name_main_personal_details_film_biography",defaultMessage:"{count, plural, one {{count} Biographical Movie} other {{count} Biographical Movies}}"},{count:n}),href:t+Nr.nameFilmBiography};case jr:return{text:i.formatMessage({id:"name_main_personal_details_print_biography",defaultMessage:"{count, plural, one {{count} Print Biography} other {{count} Print Biographies}}"},{count:n}),href:t+Nr.namePrintBiography};case Lr:return{text:i.formatMessage({id:"name_main_personal_details_portrayal",defaultMessage:"{count, plural, one {{count} Portrayal} other {{count} Portrayals}}"},{count:n}),href:t+Nr.namePortrayal};case wr:return{text:i.formatMessage({id:"name_main_personal_details_interview",defaultMessage:"{count, plural, one {{count} Interview} other {{count} Interviews}}"},{count:n}),href:t+Nr.publicityInterview};case kr:return{text:i.formatMessage({id:"name_main_personal_details_article",defaultMessage:"{count, plural, one {{count} Article} other {{count} Articles}}"},{count:n}),href:t+Nr.publicityArticle};case Ar:return{text:i.formatMessage({id:"name_main_personal_details_pictorial",defaultMessage:"{count, plural, one {{count} Pictorial} other {{count} Pictorials}}"},{count:n}),href:t+Nr.publicityPictorial};case Zr:return{text:i.formatMessage({id:"name_main_personal_details_magazine_cover",defaultMessage:"{count, plural, one {{count}Magazine Cover Photo} other {{count} Magazine Cover Photos}}"},{count:n}),href:t+Nr.publicityMagazineCover};default:return}}(e,n,o,i);n>0&&a&&l.push(a)})),(0,a.jsx)(f.MetaDataListItem,{labelTitle:r,labelLinkAriaLabel:i.formatMessage(uo.F.GO_TO,{target:r}),labelLink:o,listContent:l,"data-testid":Dr.PersonalDetailsPublicityListings})};function el(){var e=(0,u.Z)(["\n fragment NameMainPersonalDetailsSpouses on Name {\n personalDetailsSpouses: spouses {\n spouse {\n name {\n id\n nameText {\n text\n }\n }\n asMarkdown {\n plainText\n }\n }\n attributes {\n id\n text\n }\n timeRange {\n displayableProperty {\n value {\n plaidHtml\n }\n }\n }\n }\n }\n"]);return el=function(){return e},e}var nl=b()(el()),tl=function(e){var n=e.spouses,t=(0,v.Z)(),i=t.formatMessage({id:"common_spouses",defaultMessage:1===n.length?"Spouse":"Spouses"},{spousesCount:n.length}),r=(0,Qt.q)(Pr.PersonDetailsOverflowExpand,$t.qB.ACTION_ONLY,Sr.PersonalDetailsSpouses),l=(0,Qt.q)(Pr.PersonDetailsOverflowCollapse,$t.qB.ACTION_ONLY,Sr.PersonalDetailsSpouses),s=(0,o.useState)(!1),d=s[0],c=s[1],u=n.map((function(e){var n,t=null===(n=e.attributes)||void 0===n?void 0:n.join(", "),i=t?"(".concat(t,")"):void 0,a=[e.timeRange,i].filter((function(e){return!!e})).join(" ");return{text:e.text?e.text:e.fallbackText,href:e.nameId?"/name/".concat(e.nameId,"/?ref_=").concat(Sr.PersonalDetailsSpouses):void 0,subText:a}}));return n.length>1?(0,a.jsx)(f.ExpandableMetaDataListItem,{expanded:d,labelTitle:i,labelLinkAriaLabel:t.formatMessage(uo.F.EXPAND,{target:i}),stackedListItem:!0,listContent:d?u:[u[0]],"data-testid":Dr.PersonalDetailsSpouses,onListItemClick:function(){d?l():r(),c(!d)}}):(0,a.jsx)(f.MetaDataListItem,{labelTitle:i,listContent:u,"data-testid":Dr.PersonalDetailsSpouse})},il=t(4912),al=t(91466),ol=function(e){var n=e.day,t=e.month,i=e.year,o=e.localizedBirthDate,r=e.birthLocationInEnglish,l=e.localizedBirthLocation,s=(0,Me.N)({id:"common_born",defaultMessage:"Born"});return(0,a.jsx)(f.MetaDataListItem,{labelTitle:s,listContent:(0,al.S)({day:n,month:t,year:i,localizedBirthDate:o,birthLocationInEnglish:r,localizedBirthLocation:l,refTags:{location:Sr.PersonalDetailsBirthLocationSearch,monthDay:Sr.PersonalDetailsBirthMonthDay,year:Sr.PersonalDetailsBirthYear}}),"data-testid":Dr.PersonalDetailsBirthLocation})},rl=t(22540),ll=function(e){var n=e.day,t=e.month,i=e.year,o=e.localizedDeathDate,r=e.deathLocationInEnglish,l=e.localizedDeathLocation,s=e.deathCause,d=(0,Me.N)({id:"common_died",defaultMessage:"Died"});return(0,a.jsx)(f.MetaDataListItem,{labelTitle:d,listContent:(0,rl.I)({day:n,month:t,year:i,localizedDeathDate:o,deathLocationInEnglish:r,localizedDeathLocation:l,deathCause:s,refTags:{location:Sr.PersonalDetailsDeathLocationSearch,monthDay:Sr.PersonalDetailsDeathMonthDay,year:Sr.PersonalDetailsDeathYear}}),"data-testid":Dr.PersonalDetailsDeathLocation})},sl=function(e){var n,t=e.nameId,r=e.officialSites,l=e.birthInfo,s=e.deathInfo,d=e.height,c=e.alternativeNames,u=e.spouses,m=e.familyData,p=e.otherWorks,g=e.publicityListingsData,h=(0,v.Z)(),y=c?c.length:0,x=h.formatMessage({id:"name_main_personal_details_alternative_names",defaultMessage:1===y?"Alternative name":"Alternative names"},{alternativeNamesCount:y}),T=h.formatMessage({id:"common_height",defaultMessage:"Height"}),_=h.formatMessage({id:"name_main_personal_details_other_works",defaultMessage:"Other works"}),b=(0,Qt.q)(Pr.PersonDetailsOverflowExpand,$t.qB.ACTION_ONLY,Sr.PersonalDetailsAlternativeNames),C=(0,Qt.q)(Pr.PersonDetailsOverflowCollapse,$t.qB.ACTION_ONLY,Sr.PersonalDetailsAlternativeNames),I=(0,o.useState)(!1),S=I[0],P=I[1],D=r.total>0,N=!!(null===l||void 0===l?void 0:l.localizedBirthLocation)||!!(null===l||void 0===l?void 0:l.localizedBirthDate),E=!!(null===s||void 0===s?void 0:s.localizedDeathLocation)||!!(null===s||void 0===s?void 0:s.deathCause)||!!(null===s||void 0===s?void 0:s.localizedDeathDate),M=!!d,j=y>0,L=u.length>0,w=p.total>0&&!!p.otherWorksItem,k=g.publicityListingsTotal>0,A=p.otherWorksItem,Z=p.otherWorksCategory,O=p.translatedOtherWorksItem,R=p.translatedOtherWorksCategory,B=Z?"".concat(Z,": ").concat(A):A,Y=R?"".concat(R,": ").concat(O):O,F=null!==(n=null!==Y&&void 0!==Y?Y:B)&&void 0!==n?n:"",q="https://contribute.imdb.com/updates?edit=".concat(t,"/details&ref_=nm_pdt_edt"),V=p.total>1?"/name/".concat(t,"/otherworks/?ref_=").concat(Sr.PersonalDetailsOtherWorks):void 0;return D||N||E||M||j||L||w||k?(0,a.jsx)(ye.wW,{componentId:he.NG.PersonalDetails,children:(0,a.jsxs)(f.PageSection,{baseColor:"base","data-testid":he.NG.PersonalDetails,children:[(0,a.jsx)(Ui.O,{title:{id:"name_main_personal_details_title",defaultMessage:"Personal details"},editHref:q,"data-testid":Dr.PersonalDetailsSection}),(0,a.jsx)(il.r,{"data-testid":Dr.PersonalDetailsHeader,children:(0,a.jsxs)(f.MetaDataList,{children:[D&&(0,a.jsx)(Wr,{nameId:t,officialSites:r}),j&&(y>1?(0,a.jsx)(f.ExpandableMetaDataListItem,{expanded:S,labelTitle:x,labelLinkAriaLabel:h.formatMessage(uo.F.EXPAND,{target:x}),listContent:S?c:[c[0]],"data-testid":Dr.PersonalDetailsAlternativeNames,onListItemClick:function(){S?C():b(),P(!S)}}):(0,a.jsx)(f.MetaDataListItem,{labelTitle:x,listContent:c,"data-testid":Dr.PersonalDetailsAlternativeName})),M&&(0,a.jsx)(f.MetaDataListItem,{labelTitle:T,listContent:[{text:d}],"data-testid":Dr.PersonalDetailsHeight}),N&&(0,a.jsx)(ol,(0,i.Z)({},l)),E&&(0,a.jsx)(ll,(0,i.Z)({},s)),L&&(0,a.jsx)(tl,{spouses:u}),(0,a.jsx)(Gr,{id:t,familyData:m}),w&&(0,a.jsx)($e.b,{dataType:"nameOtherWork",children:(0,a.jsx)(f.MetaDataListItem,{labelTitle:_,labelLink:V,labelLinkAriaLabel:h.formatMessage(uo.F.GO_TO,{target:_}),"data-testid":Dr.PersonalDetailsOtherWorks,children:(0,a.jsx)(Qe.T,{translatedText:Y,originalText:B,refMarker:Sr.PersonalDetailsOtherWorks,children:(0,a.jsx)(f.HTMLContent,{html:F,display:"inline"})})})}),k&&(0,a.jsx)(Xr,{nameId:t,publicityListingsCategories:g.publicityListingsCategories})]})})]})}):null},dl=function(e){var n,t,o,r,l,s,d,c,u,m,f,p,v,g,h,y,x,T,_,b,C,I,S,P,D,N,E,M,j,L,w,k,A,Z,O,R,B,Y,F,q,V,U=e.data;if(!U)return null;var z,G,H,Q,$=null!==(V=null===(n=U.personalDetailsExternalLinks)||void 0===n?void 0:n.edges.map((function(e){return{url:e.node.url,label:e.node.label}})))&&void 0!==V?V:[],W=(null===(t=U.akas)||void 0===t?void 0:t.edges.map((function(e){return{text:e.node.displayableProperty.value.plainText}})).filter((function(e){return"string"===typeof e.text})))||[],J=null!==(z=null===U||void 0===U||null===(o=U.personalDetailsSpouses)||void 0===o?void 0:o.map((function(e){var n,t,i,a,o,r,l,s,d;return{nameId:null===(n=e.spouse)||void 0===n||null===(t=n.name)||void 0===t?void 0:t.id,text:null===(i=e.spouse)||void 0===i||null===(a=i.name)||void 0===a||null===(o=a.nameText)||void 0===o?void 0:o.text,fallbackText:null===(r=e.spouse)||void 0===r||null===(l=r.asMarkdown)||void 0===l?void 0:l.plainText,attributes:null===e||void 0===e||null===(s=e.attributes)||void 0===s?void 0:s.map((function(e){return e.text})),timeRange:null===(d=e.timeRange)||void 0===d?void 0:d.displayableProperty.value.plaidHtml}})))&&void 0!==z?z:[],K={total:(null===(r=U.personalDetailsExternalLinks)||void 0===r?void 0:r.total)||0,externalLinks:$},X=null===(l=U.otherWorks)||void 0===l||null===(s=l.edges)||void 0===s||null===(d=s[0])||void 0===d?void 0:d.node,ee={otherWorksItem:null!==(G=null===X||void 0===X||null===(c=X.text)||void 0===c?void 0:c.plaidHtml)&&void 0!==G?G:"",otherWorksCategory:null!==(H=null===X||void 0===X||null===(u=X.category)||void 0===u?void 0:u.text)&&void 0!==H?H:"",total:null!==(Q=null===(m=U.otherWorks)||void 0===m?void 0:m.total)&&void 0!==Q?Q:0,translatedOtherWorksItem:null===X||void 0===X||null===(f=X.experimental_translatedText)||void 0===f?void 0:f.plaidHtml,translatedOtherWorksCategory:null===X||void 0===X||null===(p=X.experimental_translatedCategory)||void 0===p?void 0:p.text},ne={publicityListingsTotal:(null===(v=U.publicityListings)||void 0===v?void 0:v.total)||0,publicityListingsCategories:{nameFilmBiography:(null===(g=U.nameFilmBiography)||void 0===g?void 0:g.total)||0,namePrintBiography:(null===(h=U.namePrintBiography)||void 0===h?void 0:h.total)||0,namePortrayal:(null===(y=U.namePortrayal)||void 0===y?void 0:y.total)||0,publicityInterview:(null===(x=U.publicityInterview)||void 0===x?void 0:x.total)||0,publicityArticle:(null===(T=U.publicityArticle)||void 0===T?void 0:T.total)||0,publicityPictorial:(null===(_=U.publicityPictorial)||void 0===_?void 0:_.total)||0,publicityMagazineCover:(null===(b=U.publicityMagazineCover)||void 0===b?void 0:b.total)||0}},te={day:null===(C=U.birthDate)||void 0===C||null===(I=C.dateComponents)||void 0===I?void 0:I.day,month:null===(S=U.birthDate)||void 0===S||null===(P=S.dateComponents)||void 0===P?void 0:P.month,year:null===(D=U.birthDate)||void 0===D||null===(N=D.dateComponents)||void 0===N?void 0:N.year,localizedBirthDate:null===(E=U.birthDate)||void 0===E?void 0:E.displayableProperty.value.plainText,birthLocationInEnglish:null===(M=U.birthLocation)||void 0===M?void 0:M.text,localizedBirthLocation:null===(j=U.birthLocation)||void 0===j?void 0:j.displayableProperty.value.plainText},ie={day:null===(L=U.deathDate)||void 0===L||null===(w=L.dateComponents)||void 0===w?void 0:w.day,month:null===(k=U.deathDate)||void 0===k||null===(A=k.dateComponents)||void 0===A?void 0:A.month,year:null===(Z=U.deathDate)||void 0===Z||null===(O=Z.dateComponents)||void 0===O?void 0:O.year,localizedDeathDate:null===(R=U.deathDate)||void 0===R?void 0:R.displayableProperty.value.plainText,deathLocationInEnglish:null===(B=U.deathLocation)||void 0===B?void 0:B.text,localizedDeathLocation:null===(Y=U.deathLocation)||void 0===Y?void 0:Y.displayableProperty.value.plainText,deathCause:null===(F=U.deathCause)||void 0===F?void 0:F.displayableProperty.value.plainText},ae={nameId:U.id,officialSites:K,birthInfo:te,deathInfo:ie,height:null===(q=U.height)||void 0===q?void 0:q.displayableProperty.value.plainText,alternativeNames:W,spouses:J,familyData:U,otherWorks:ee,publicityListingsData:ne};return(0,a.jsx)(sl,(0,i.Z)({},ae))};function cl(){var e=(0,u.Z)(['\n fragment NameMainPersonalDetails on Name {\n id\n height {\n displayableProperty {\n value {\n plainText\n }\n }\n }\n birthDate {\n dateComponents {\n day \n month\n year\n }\n displayableProperty{\n value {\n plainText\n }\n }\n }\n birthLocation {\n text\n displayableProperty {\n value {\n plainText\n }\n }\n }\n deathDate {\n dateComponents {\n day \n month\n year\n }\n displayableProperty{\n value {\n plainText\n }\n }\n }\n deathLocation {\n text\n displayableProperty {\n value {\n plainText\n }\n }\n }\n deathCause {\n displayableProperty {\n value {\n plainText\n }\n }\n }\n akas(first: 300) {\n edges {\n node {\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n otherWorks(first: 1) {\n edges {\n node {\n category {\n text\n }\n experimental_translatedCategory @include(if: $isAutoTranslationEnabled) {\n text\n }\n text {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n experimental_translatedText @include(if: $isAutoTranslationEnabled) {\n plaidHtml(queryParams: "','", showOriginalTitleText: $originalTitleText)\n }\n }\n }\n total\n }\n ...NameMainPersonalDetailsSpouses\n ...NameMainPDTFamily\n ...NameMainPersonalDetailsOfficialSites\n ...NameMainPersonalDetailsPublicityListings\n }\n ',"\n ","\n ","\n ","\n "]);return cl=function(){return e},e}var ul,ml={component:function(e){return(0,a.jsx)(dl,(0,i.Z)({},e))},fragment:{name:"NameMainPersonalDetails",gql:b()(cl(),Sr.PersonalDetailsOtherWorks,Sr.PersonalDetailsOtherWorks,nl,Fr,$r,Kr)},shouldInstrumentMetrics:!0};function fl(){var e=(0,u.Z)(["\n padding: 0 ",";\n"]);return fl=function(){return e},e}!function(e){e.Section="pro-self-verified-section",e.Title="pro-self-verified-title",e.LearnMore="pro-self-verified-title-learn-more",e.Item="pro-self-verified-list-item"}(ul||(ul={}));var pl=function(e){var n,t=e.data,i=(0,v.Z)();return t&&(null===(n=t.demographicData)||void 0===n?void 0:n.length)?(0,a.jsx)(ye.wW,{componentId:he.NG.SelfVerified,children:(0,a.jsxs)(f.PageSection,{baseColor:"base","data-testid":ul.Section,children:[(0,a.jsx)(f.SectionTitle,{"data-testid":ul.Title,actions:(0,a.jsx)(f.IconLink,{name:"info",href:"https://help.imdb.com/article/imdbpro/manage-your-imdb-page/manage-your-demographic-data/GSPE4URAA93PW6C9?ref_=nm_sv_hlp",label:i.formatMessage({id:"name_main_pro_selfVerified_titleAriaLabel",defaultMessage:"Learn more about managing your personal details."}),"data-testid":ul.LearnMore}),children:i.formatMessage({id:"name_main_pro_selfVerified_sectionTitle",defaultMessage:"Self-verified on IMDbPro"})}),(0,a.jsx)(vl,{children:t.demographicData.map((function(e,n){return(0,a.jsx)(f.MetaDataListItem,{labelTitle:e.type.text,listContent:[{text:e.value.text}],"data-testid":ul.Item},"nm-sv-".concat(n))}))})]})}):null},vl=(0,m.default)(f.MetaDataList).withConfig({componentId:"sc-7ed5feb-0"})(fl(),(0,p.getSpacingVar)("ipt-pageMargin"));function gl(e){return(0,a.jsx)(pl,(0,i.Z)({},e))}function hl(){var e=(0,u.Z)(["\n fragment NameMainSelfVerified on Name {\n demographicData(filter: { selfVerified: true }) {\n type {\n text\n }\n value {\n text\n components {\n text\n }\n }\n }\n }\n "]);return hl=function(){return e},e}var yl={component:function(e){return o.createElement(gl,e)},fragment:{name:"NameMainSelfVerified",gql:b()(hl())},shouldInstrumentMetrics:!0,shouldRender:function(e){var n;return!!(null===(n=e.demographicData)||void 0===n?void 0:n.length)}},xl=function(e){var n={beforeFeatures:{component:function(){return(0,a.jsx)(zt.ZP,{name:Un.AD_SLOT_NAMES.PROVIDER_PROMOTION})}},NameAwardsEntity:Jn,productTestingSlot2:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_2})}},editorialCenter3:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_3})}},inline40:{component:function(){return(0,a.jsx)(zt.zo,{onlyShowAtMediumMinusBreakpoints:!0,"data-test-id":zn.z.INLINE_40_SMALL,name:Un.AD_SLOT_NAMES.INLINE40,nasConfig:{classNames:[Un.AD_SLOT_NAMES.INLINE40_MAIN]}})}},NamePhotosEntity:gt,contact_info_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"contactInfo"})}},inline50:{component:function(){return(0,a.jsx)(zt.ZP,{"data-test-id":zn.z.INLINE_50_SMALL,name:Un.AD_SLOT_NAMES.INLINE50})}},NameFilmographyEntity:Er,productTestingSlot7:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_7})}},editorialSlot8:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_8})}},NameVideosEntity:Ut,criticalFeature:{component:function(){return(0,a.jsx)(a.Fragment,{children:((0,Gt.oR)(),(0,Vn.insertCSAPageCriticalFeature)(Date.now()))})}},NamePersonalDetailsEntity:ml,track1_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"track1"})}},NameSelfVerifiedEntity:yl,NameDidYouKnowEntity:$i,NameFaqsEntity:at,nameMainNews:{component:function(){return(0,a.jsx)(ct,{})}},NameContributionEntity:Kn.t,productTestingSlot19:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_19})}},editorialCenter20:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_20})}}};return(null===e||void 0===e?void 0:e.T1)?n={beforeFeatures:{component:function(){return(0,a.jsx)(zt.ZP,{name:Un.AD_SLOT_NAMES.PROVIDER_PROMOTION})}},NamePhotosEntity:gt,inline40:{component:function(){return(0,a.jsx)(zt.zo,{onlyShowAtMediumMinusBreakpoints:!0,"data-test-id":zn.z.INLINE_40_SMALL,name:Un.AD_SLOT_NAMES.INLINE40,nasConfig:{classNames:[Un.AD_SLOT_NAMES.INLINE40_MAIN]}})}},NameAwardsEntity:Jn,productTestingSlot2:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_2})}},editorialCenter3:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_3})}},contact_info_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"contactInfo"})}},NameFilmographyEntity:Er,productTestingSlot7:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_7})}},editorialSlot8:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_8})}},NameVideosEntity:Ut,criticalFeature:{component:function(){return(0,a.jsx)(a.Fragment,{children:((0,Gt.oR)(),(0,Vn.insertCSAPageCriticalFeature)(Date.now()))})}},NamePersonalDetailsEntity:ml,track1_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"track1"})}},NameSelfVerifiedEntity:yl,NameDidYouKnowEntity:$i,NameFaqsEntity:at,nameMainNews:{component:function(){return(0,a.jsx)(ct,{})}},NameContributionEntity:Kn.t,productTestingSlot19:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_19})}},editorialCenter20:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_20})}}}:(null===e||void 0===e?void 0:e.T2)&&(n={beforeFeatures:{component:function(){return(0,a.jsx)(zt.ZP,{name:Un.AD_SLOT_NAMES.PROVIDER_PROMOTION})}},NamePhotosEntity:gt,inline40:{component:function(){return(0,a.jsx)(zt.zo,{onlyShowAtMediumMinusBreakpoints:!0,"data-test-id":zn.z.INLINE_40_SMALL,name:Un.AD_SLOT_NAMES.INLINE40,nasConfig:{classNames:[Un.AD_SLOT_NAMES.INLINE40_MAIN]}})}},productTestingSlot2:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_2})}},editorialCenter3:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_3})}},contact_info_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"contactInfo"})}},NameAwardsEntity:Jn,NameFilmographyEntity:Er,productTestingSlot7:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_7})}},editorialSlot8:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_8})}},NameVideosEntity:Ut,criticalFeature:{component:function(){return(0,a.jsx)(a.Fragment,{children:((0,Gt.oR)(),(0,Vn.insertCSAPageCriticalFeature)(Date.now()))})}},NamePersonalDetailsEntity:ml,track1_ProAppUpsell:{component:function(){return(0,a.jsx)(Mt,{hidePostIcon:!0,track:"track1"})}},NameSelfVerifiedEntity:yl,NameDidYouKnowEntity:$i,NameFaqsEntity:at,nameMainNews:{component:function(){return(0,a.jsx)(ct,{})}},NameContributionEntity:Kn.t,productTestingSlot19:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_19})}},editorialCenter20:{component:function(){return(0,a.jsx)(Gn.Z,{slotName:Hn.B.CENTER_20})}}}),{operationName:"name",queryName:"NameMainColumnQuery",entityGroups:{mainColumn:n}}},Tl=function(e){var n,t=e.mainColumnData,i=(0,Fn.B)().context,o=null===i||void 0===i||null===(n=i.sidecar)||void 0===n?void 0:n.weblabs.IMDB_NEXT_EXPERIMENT_NAME_PAGE_ORDER_896715;return(0,a.jsx)(a.Fragment,{children:Object.entries(xl(o).entityGroups.mainColumn).map((function(e){var n=(0,x.Z)(e,2),i=n[0],o=n[1];if(o.shouldRender&&t&&!1===o.shouldRender(t))return null;var r=o.component;return(0,a.jsx)(Yn.Z,{name:i,parent:"NameMainColumnSSR",children:(0,a.jsx)(r,{data:t,fetching:!1})},i)}))})},_l=function(e){var n,t,i,o,l=e.nmconst,s={type:r.PageType.NAME,subType:r.SubPageType.MAIN},d=(0,Fn.B)().context,c=!!(null===(n=d.sidecar)||void 0===n?void 0:n.localizationResponse.isOriginalTitlePreferenceSet),u=!!(null===(t=d.sidecar)||void 0===t?void 0:t.localizationResponse.isAutoTranslationEnabled),m=null===(i=d.sidecar)||void 0===i?void 0:i.account.isLoggedIn,f=null===d||void 0===d||null===(o=d.sidecar)||void 0===o?void 0:o.weblabs.IMDB_NEXT_EXPERIMENT_NAME_PAGE_ORDER_896715,p={config:xl(f),context:{personalized:!1,serverSideCacheable:!0,emitMetrics:{noData:function(e,n){return!(null===n||void 0===n?void 0:n.name)}}},queryVariables:{id:{type:"ID!",value:l},originalTitleText:{type:"Boolean",value:c},includeUserRating:{type:"Boolean!",value:m},isAutoTranslationEnabled:{type:"Boolean!",value:u}},requiredFields:["images","primaryImage"]};return(0,a.jsx)(Bn.J,{trContext:s,pageQueryOptions:p,Component:function(e){var n=e.queryData;return(0,a.jsx)(qn.Z,{groupConfig:p.config.entityGroups.mainColumn,pageQueryData:n})}})},bl=function(e){return e.mainColumnData?(0,a.jsx)(Tl,(0,i.Z)({},e)):(0,a.jsx)(_l,(0,i.Z)({},e))},Cl=t(80427);function Il(){var e=(0,u.Z)(["\n visibility: hidden;\n"]);return Il=function(){return e},e}var Sl=function(e){var n=e.nameSeenProps;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Pl,{className:"sidebar-intersection","data-testid":"sidebar-intersection"}),(0,a.jsx)(Cl.Z,{nameSeenProps:n})]})},Pl=m.default.div.withConfig({componentId:"sc-61cd218a-0"})(Il()),Dl=t(82821);var Nl=function(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(f.SetPalette,{palette:"dark",children:(0,a.jsx)(f.PageBackground,{children:(0,a.jsxs)(f.PageContentContainer,{children:[(0,a.jsx)(Dl.Z,{slotName:Hn.B.BOTTOM_1}),(0,a.jsx)(Dl.Z,{slotName:Hn.B.BOTTOM_2})]})})})})},El=function(e){var n,t,o,r=e.nmconst,u=e.aboveTheFold,m=e.mainColumnData,f=e.nameCallToActionData;(0,d.P)(c.lh.IMDB_SIX_DEGREES_NAME_SNACK_649270);var p={nameId:null===m||void 0===m?void 0:m.id,nameCreditsTotal:null===m||void 0===m||null===(n=m.creditSummary)||void 0===n||null===(t=n.totalCredits)||void 0===t?void 0:t.total,nameText:null===m||void 0===m||null===(o=m.nameText)||void 0===o?void 0:o.text};return(0,a.jsx)(s.Lo,{value:{nameCallToAction:f},children:(0,a.jsx)(l.f,{aboveTheFold:(0,a.jsx)(Mn,(0,i.Z)({},u)),belowTheFold:{mainColumn:(0,a.jsx)(bl,{nmconst:r,mainColumnData:m}),sidebar:(0,a.jsx)(Sl,{nameSeenProps:p})},bottomGroup:(0,a.jsx)(Nl,{})})})},Ml=t(18597),jl=!0,Ll=function(e){return(0,a.jsx)(Ml.Z,{baseColor:"base",orientContent:"full",hideAdWrap:!0,cti:r.CTIS.NAME_MAIN_CTI,children:(0,a.jsx)(El,(0,i.Z)({},e))})}},8225:function(e,n,t){"use strict";t.d(n,{aB:function(){return E},pj:function(){return N}});var i=t(70865),a=t(96670),o=t(92228),r=t(52322),l=t(30382),s=t.n(l),d=t(2784),c=t(73857),u=t(19596),m=t(45103),f=t(91842),p=t(11998),v=t(75467),g=t(22792),h=t(61436),y=t(35635),x=t(22659),T=t(13813),_=t(11992),b=t(96485),C=t(77637),I=t(59025);function S(){var e=(0,o.Z)(["\n fragment CreditCard on Title {\n id\n canRate {\n isRatable\n }\n certificate {\n rating\n }\n originalTitleText {\n text\n }\n titleText {\n text\n }\n titleType {\n canHaveEpisodes\n displayableProperty {\n value {\n plainText\n }\n }\n text\n id\n }\n primaryImage {\n id\n url\n height\n width\n caption {\n plainText\n }\n }\n ratingsSummary {\n aggregateRating\n voteCount\n }\n userRating @include(if: $includeUserRating) {\n value\n }\n latestTrailer {\n id\n }\n # TODO: replace with credit summary (or maybe not for the character summary prompt)\n releaseYear {\n year\n endYear\n }\n runtime {\n seconds\n }\n series {\n series {\n titleText {\n text\n }\n originalTitleText {\n text\n }\n }\n }\n titleGenres {\n genres(limit: 3) {\n genre {\n text\n }\n }\n }\n productionStatus {\n currentProductionStage {\n id\n text\n }\n }\n }\n"]);return S=function(){return e},e}function P(){var e=(0,o.Z)(["\n .credit-card-action-container {\n position: absolute;\n right: 0;\n bottom: 0;\n }\n"]);return P=function(){return e},e}function D(){var e=(0,o.Z)(["\n margin-right: -",";\n margin-bottom: -0.4rem;\n"]);return D=function(){return e},e}var N=s()(S()),E=function(e){var n,t,o,l,s,u=e.className,f=e.nameId,S=e.nameImage,P=e.nameText,D=e.testId,N=e.titleData,E=(0,c.Z)(),L=(0,T.y)(),w=L.pageType,k=L.subPageType,A=(0,x.q)("cc-series-creds",_.qB.ACTION_ONLY,"".concat(null===N||void 0===N?void 0:N.refPrefix,"_eps")),Z=(0,x.q)("cc-series-creds",_.qB.ACTION_ONLY,"".concat(null===N||void 0===N?void 0:N.refPrefix,"_tp_eps")),O=(0,x.q)("tp-prmpt-open",_.qB.ACTION_ONLY,"".concat(null===N||void 0===N?void 0:N.refPrefix)),R=(0,d.useState)(!1),B=R[0],Y=R[1],F=(0,d.useState)({href:void 0,imageModel:S,isOpen:!1,title:String(P),type:"avatar"}),q=F[0],V=F[1],U=(null===(n=(0,m.useRatingsContext)((null===N||void 0===N?void 0:N.id)||""))||void 0===n?void 0:n.rating)||void 0,z=(0,h.P)(U,"user"),G=(0,h.P)(null===N||void 0===N?void 0:N.rating,"imdb"),H=function(){V({href:void 0,imageModel:S,isOpen:!0,title:String(P),type:"avatar"}),Y(!1),Z()};if(!N||!N.id||!N.titleText||!N.titleType)return null;var Q,$={id:"credit_card_more",defaultMessage:"More"},W={id:"common_cast_numEpisodes_short",defaultMessage:"{totalEpisodes, plural, one {{totalEpisodes} ep} other {{totalEpisodes} eps}}"},J={id:"common_cast_numEpisodes_short",defaultMessage:"{totalEpisodes, plural, one {{totalEpisodes} ep} other {{totalEpisodes} eps}}"},K=(null===(t=N.primaryImage)||void 0===t?void 0:t.caption)||N.titleText,X=(0,b.Gs)((0,a.Z)((0,i.Z)({},N.primaryImage),{caption:void 0}),K),ee=null===(o=N.titleType)||void 0===o?void 0:o.id,ne=N.releaseYear?(0,y.y)({year:N.releaseYear,endYear:N.endYear},!1):"",te={pageType:w,subPageType:k,refTag:(0,C.z)("wlr",{prefix:N.refPrefix,suffix:N.refSuffix})},ie=(0,C.z)(null!==(Q=N.refPrefix)&&void 0!==Q?Q:"",{suffix:N.refSuffix}),ae=(null===(l=N.titleType)||void 0===l?void 0:l.canHaveEpisodes)&&N.episodeCount?function(){var e={href:"/title/".concat(N.id,"/?").concat(ie),imageModel:X,isOpen:!0,title:String(N.titleText),type:"poster"};V(e),A()}:void 0,oe=[];ne&&N.episodeCount?oe.push({text:"".concat(ne," \u2022 ").concat(E.formatMessage(W,{totalEpisodes:N.episodeCount})),onSelect:ae,testId:"nm-flmg-title-metadata-".concat(N.id)}):(ne&&oe.push({text:ne,onSelect:ae,testId:"nm-flmg-title-year-".concat(N.id)}),N.episodeCount&&oe.push({text:E.formatMessage(W,{totalEpisodes:N.episodeCount}),onSelect:ae,testId:"nm-flmg-title-eps-".concat(N.id)}));var re,le,se,de,ce=[],ue=!0,me=!1,fe=void 0;try{for(var pe,ve=(null!==(re=N.creditSummary)&&void 0!==re?re:[])[Symbol.iterator]();!(ue=(pe=ve.next()).done);ue=!0){var ge=pe.value;ce.push({text:ge})}}catch(he){me=!0,fe=he}finally{try{ue||null==ve.return||ve.return()}finally{if(me)throw fe}}return ce.length&&(null===(s=N.attributes)||void 0===s?void 0:s.length)&&(ce[ce.length-1]=(0,a.Z)((0,i.Z)({},ce[ce.length-1]),{attributeText:"(".concat(N.attributes.join(", "),")")})),(0,r.jsx)(v.WatchlistConsumer,{id:N.id,metricsContext:te,render:function(e){var n,t,o,l,s,d,c,m;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(M,{className:u,href:"/title/".concat(N.id,"/?ref_=").concat((0,C.z)("c",{prefix:N.refPrefix,suffix:N.refSuffix})),ariaLabel:String(N.titleText),contentProps:{ratingStarGroupProps:N.canRate?{formattedImdbRating:G,formattedUserRating:z}:{},secondaryText:ce,titleMetadata:oe,titleProps:{title:String(N.titleText),href:"/title/".concat(N.id,"/?ref_=").concat((0,C.z)("t",{prefix:N.refPrefix,suffix:N.refSuffix}))},titleType:null===(n=N.titleType)||void 0===n?void 0:n.text,actionProps:{children:(0,r.jsx)(j,{ariaLabel:E.formatMessage($),className:"credit-card-details-button",name:"info",id:"".concat(null===N||void 0===N?void 0:N.refPrefix,"-").concat(N.id).replace("_","-"),label:"",onColor:"accent2",onClick:function(){O(),Y(!0)},onKeyDown:function(e){(0,p.isEnterOrSpaceKey)(e)&&(O(),Y(!0))}}),className:"credit-card-action-container"}},"data-testid":D,posterProps:{ariaLabel:K,href:"/title/".concat(N.id,"/?ref_=").concat(N.refPrefix,"_i_").concat(N.refSuffix),imageProps:{imageModel:X,imageType:ee},watchlistRibbonProps:(0,i.Z)({size:"s"},e)}}),B&&P&&(0,r.jsx)(I.d,{contentOverride:function(){var e=[];return N.episodeCount&&e.push({text:E.formatMessage(J,{totalEpisodes:N.episodeCount})}),ne&&e.push({text:ne}),(0,r.jsx)(I._,{titleData:N,titleMetadata:e,nameText:String(P),onEpisodicCreditClick:H})},isOpen:B,onClose:function(){return Y(!1)},refMarker:{prefix:N.refPrefix,suffix:N.refSuffix},title:{canRate:{isRatable:Boolean(N.canRate)},canHaveEpisodes:null===(t=N.titleType)||void 0===t?void 0:t.canHaveEpisodes,certificate:N.certificate?{rating:N.certificate}:void 0,id:null!==(le=N.id)&&void 0!==le?le:"",latestTrailer:N.trailerId?{id:N.trailerId}:void 0,originalTitleText:{text:String(N.titleText)},primaryImage:(0,a.Z)((0,i.Z)({id:"id"},N.primaryImage),{caption:{plainText:null===N||void 0===N||null===(o=N.primaryImage)||void 0===o?void 0:o.caption}}),ratingsSummary:{aggregateRating:N.rating,voteCount:0},releaseYear:{endYear:N.endYear,year:N.releaseYear},runtime:N.runtime?{seconds:N.runtime}:void 0,titleGenres:N.genres?{genres:N.genres.map((function(e){return{genre:{text:e}}}))}:void 0,titleText:{text:String(N.titleText)},titleType:{displayableProperty:{value:String(null===(l=N.titleType)||void 0===l?void 0:l.text)},id:String(null===(s=N.titleType)||void 0===s?void 0:s.id),text:String(null===(d=N.titleType)||void 0===d?void 0:d.text),canHaveEpisodes:Boolean(null===(c=N.titleType)||void 0===c?void 0:c.canHaveEpisodes)}}}),q.isOpen&&(0,r.jsx)(g.D,{headerProps:{ariaLabel:q.title,imageModel:q.imageModel,title:q.title,type:q.type,imageType:null===(m=N.titleType)||void 0===m?void 0:m.id},titleId:String(N.id),nameId:String(f),refTagPrefix:null!==(se=N.refPrefix)&&void 0!==se?se:"",episodeCount:null!==(de=N.episodeCount)&&void 0!==de?de:0,jobCategory:N.jobCategory,isOpen:q.isOpen,onCloseSelected:function(){return V((0,a.Z)((0,i.Z)({},q),{isOpen:!1}))},seasonOrYearEpisodeData:N.seasonOrYearEpisodeData,tenureText:ne})]})}})},M=(0,u.default)(m.PrimaryImageListCard).withConfig({componentId:"sc-40e503ad-0"})(P()),j=(0,u.default)(m.IconButton).withConfig({componentId:"sc-40e503ad-1"})(D(),f.spacing.xxs)},77161:function(e,n,t){"use strict";var i=t(92228),a=t(30382),o=t.n(a),r=t(51044);function l(){var e=(0,i.Z)(['\n fragment NameMetadata on Name {\n id\n nameText {\n text\n }\n searchIndexing {\n disableIndexing\n }\n disambiguator {\n text\n }\n knownFor(first: 3) {\n edges {\n node {\n title {\n titleText {\n text\n }\n }\n summary {\n principalCategory {\n text\n }\n }\n }\n }\n }\n images(first: 1) {\n total\n edges {\n node {\n id\n }\n }\n }\n primaryImage {\n id\n url\n height\n width\n caption {\n plainText\n }\n }\n meta {\n canonicalId\n publicationStatus\n }\n bio {\n text {\n plainText\n plaidHtml(\n queryParams: "ref_=nm_ov_bio_lk"\n showOriginalTitleText: $originalTitleText\n )\n }\n experimental_translatedText\n @include(if: $isAutoTranslationEnabled) {\n plainText\n plaidHtml(\n queryParams: "ref_=nm_ov_bio_lk"\n showOriginalTitleText: $originalTitleText\n )\n }\n }\n primaryProfessions {\n category {\n text\n }\n }\n birthDate {\n displayableProperty {\n value {\n plainText\n }\n }\n date\n dateComponents {\n day\n month\n year\n isBCE\n }\n }\n deathDate {\n displayableProperty {\n value {\n plainText\n }\n }\n date\n dateComponents {\n day\n month\n year\n }\n }\n deathStatus\n meterRanking {\n currentRank\n rankChange {\n changeDirection\n difference\n }\n }\n ...NameSubNav\n }\n ',"\n"]);return l=function(){return e},e}var s=o()(l(),r.k);n.Z=s},51044:function(e,n,t){"use strict";t.d(n,{k:function(){return r}});var i=t(92228),a=t(30382);function o(){var e=(0,i.Z)(["\n fragment NameSubNav on Name {\n subNavBio: bio {\n id\n }\n subNavTrivia: trivia(first: 0) {\n total\n }\n subNavAwardNominations: awardNominations(first: 0) {\n total\n }\n subNavFaqs: alexaTopQuestions(first: 0) {\n total\n }\n }\n"]);return o=function(){return e},e}var r=t.n(a)()(o())},59025:function(e,n,t){"use strict";t.d(n,{_:function(){return x},d:function(){return y}});var i=t(92228),a=t(50930),o=t(52322),r=(t(2784),t(73857)),l=t(19596),s=t(45103),d=t(91842),c=t(6741),u=t(22659),m=t(11992),f=t(77637);function p(){var e=(0,i.Z)(["\n margin-bottom: ",";\n\n a.character-summary-episodic-credit {\n cursor: pointer;\n text-decoration: none;\n ",";\n &:hover,\n &:active,\n &:focus {\n text-decoration: underline;\n }\n }\n\n "," {\n margin-left: ",";\n }\n"]);return p=function(){return e},e}function v(){var e=(0,i.Z)(["\n font-weight: bold;\n"]);return v=function(){return e},e}function g(){var e=(0,i.Z)(["\n ","\n ",";\n font-weight: bold;\n"]);return g=function(){return e},e}function h(){var e=(0,i.Z)(["\n ","\n ","\n"]);return h=function(){return e},e}var y=function(e){var n=e.actionOverride,t=e.contentOverride,i=e.isOpen,a=e.onClose,r=e.queryOverride,l=e.refMarker,s=e.title;return s?(0,o.jsx)(c.Pz,{actionOverride:n,contentOverride:t,isOpen:i,onClose:a,queryOverride:r,refMarker:l,title:s}):null},x=function(e){var n,t,i,l=e.titleData,d=e.titleMetadata,c=e.nameText,p=e.onEpisodicCreditClick,v=(0,r.Z)(),g=(0,f.z)("cred",{prefix:l.refPrefix}),h=(0,u.q)("overflow-content-expand",m.qB.ACTION_ONLY,g),y=(0,u.q)("overflow-content-collapse",m.qB.ACTION_ONLY,g),x=v.formatMessage({id:"common_buttons_open",defaultMessage:"Open"}),C=v.formatMessage({id:"common_buttons_close",defaultMessage:"Close"}),I=p?"a":"span",S=(0,a.Z)(l.creditSummary||[]);if(null===l||void 0===l||null===(n=l.attributes)||void 0===n?void 0:n.length){var P,D="(".concat(null===(P=l.attributes)||void 0===P?void 0:P.join(", "),")");S[S.length-1]="".concat(S[S.length-1]," ").concat(D)}return(0,o.jsxs)(T,{children:[(S.length>0||!!(null===l||void 0===l||null===(t=l.attributes)||void 0===t?void 0:t.length))&&(0,o.jsxs)(s.ExpandableSection,{ariaLabelOpen:x,ariaLabelClose:C,onExpand:h,onCollapse:y,children:[(0,o.jsx)(b,{children:v.formatMessage({id:"name_main_filmography_name_credit",defaultMessage:"{name}'s credits:"},{name:c})}),(0,o.jsx)(s.InlineList,{showDividers:!0,inline:!0,items:S.map((function(e){return{children:e}}))})]}),(0,o.jsx)(I,{className:"character-summary-episodic-credit",onClick:p,children:(null===(i=l.titleType)||void 0===i?void 0:i.canHaveEpisodes)&&Boolean(l.episodeCount)&&(0,o.jsx)(_,{className:"character-summary-episodic-credit-list",inline:!0,showDividers:!0,children:d.map((function(e,n){return(0,o.jsx)(s.InlineListItem,{children:e.text},"character-summary-episodic-credit-".concat(n))}))})})]})},T=l.default.div.withConfig({componentId:"sc-5b4c68b0-0"})(p(),d.spacing.m,(0,d.setPropertyToColorVar)("color","ipt-on-baseAlt-accent2-color"),d.mediaQueries.breakpoints.below.m,d.spacing.s),_=(0,l.default)(s.InlineList).withConfig({componentId:"sc-5b4c68b0-1"})(v()),b=l.default.span.withConfig({componentId:"sc-5b4c68b0-2"})(g(),(0,d.setTypographyType)("bodySmall"),(0,d.setPropertyToColorVar)("color","ipt-on-base-accent1-color"));l.default.span.withConfig({componentId:"sc-5b4c68b0-3"})(h(),(0,d.setTypographyType)("bodySmall"),(0,d.setPropertyToColorVar)("color","ipt-on-baseAlt-textSecondary-color"))},89486:function(e,n,t){"use strict";t.d(n,{t:function(){return m},c:function(){return u}});var i=t(70865),a=t(92228),o=t(52322),r=t(30382),l=t.n(r),s=(t(2784),t(72879));var d=function(e){var n=e.data;if(!n)return null;var t=function(e){return{id:e.id,canHaveEpisodes:!1}}(n);return(0,o.jsx)(s.Ll,(0,i.Z)({},t))};function c(){var e=(0,a.Z)(["\n fragment NameContribution on Name {\n id\n }\n"]);return c=function(){return e},e}var u=l()(c()),m={component:function(e){return(0,o.jsx)(d,(0,i.Z)({},e))},fragment:{name:"NameContribution",gql:u},shouldInstrumentMetrics:!0}},87829:function(e,n,t){"use strict";var i=t(92228),a=t(52322),o=(t(2784),t(19596)),r=t(45103),l=t(91842),s=t(8225),d=t(1577),c=t(97277);function u(){var e=(0,i.Z)(["\n .name-known-for-title {\n margin-bottom: ",";\n ","\n }\n"]);return u=function(){return e},e}var m={id:"name_main_known_for_title",defaultMessage:"Known for: "};n.ZP=function(e){var n=e.knownForData,t=e.nameId,i=e.nameImage,o=e.nameText,l=(null===n||void 0===n?void 0:n.map((function(e){return{id:e.titleId}})))||[];return(0,c.b)(l),(null===n||void 0===n?void 0:n.length)?(0,a.jsxs)(r.PageSection,{children:[(0,a.jsx)(d.O,{title:m}),(0,a.jsx)(f,{"data-testid":"nm_flmg_kwn_for",children:(0,a.jsx)(r.Shoveler,{className:"name-known-for-grid",wraps:!0,wrapsAt:"above-l",children:n.map((function(e,n){var r,l=n+1,d=e.characters;return(0,a.jsx)(s.aB,{nameId:t,nameImage:i,nameText:o,testId:"nm_kwn_for_".concat(n),titleData:{attributes:e.attributes,canRate:e.canRate,certificate:e.certificate,creditSummary:d.length?d:[e.creditCategory],endYear:e.endYear,episodeCount:e.episodeCreditsCount,genres:e.genres,id:e.titleId,jobCategory:e.jobCategory,primaryImage:e.primaryImage,rating:e.rating,refSuffix:"".concat(l),refPrefix:"nm_knf",releaseYear:e.releaseYear,runtime:e.runtime,seasonOrYearEpisodeData:null!==(r=e.seasonOrYearEpisodeData)&&void 0!==r?r:{seasonGrouping:"none",firstSeasonOrYear:""},titleText:e.titleText,titleType:e.titleType,trailerId:e.trailerId}},"nm-kwn-for-".concat(e.titleId))}))})})]}):null};var f=o.default.div.withConfig({componentId:"sc-a6d4b6c0-0"})(u(),l.spacing.m,(0,l.setPropertyToSpacingVar)("margin-left","ipt-pageMargin"))},54499:function(e,n,t){"use strict";t.d(n,{o:function(){return d}});var i=t(92228),a=t(30382),o=t.n(a),r=t(8225),l=t(33335);function s(){var e=(0,i.Z)(["\n fragment NameKnownFor on Name {\n knownForFeature: knownFor(first: 4) {\n edges {\n node {\n summary {\n attributes {\n text\n }\n episodeCount\n principalCategory {\n text\n id\n }\n principalCharacters {\n name\n }\n principalJobs {\n id\n text\n }\n yearRange {\n year\n endYear\n }\n }\n credit {\n ...CreditMetaData\n }\n title {\n ...CreditCard\n }\n }\n }\n }\n }\n ","\n ","\n"]);return s=function(){return e},e}var d=o()(s(),r.pj,l.w)},95224:function(e,n,t){"use strict";t.d(n,{a:function(){return l}});var i=t(34725),a=t(25140),o=t(65759),r=t(89254),l=function(e){var n,t=[],l=(0,a.B)().context;return null===e||void 0===e||null===(n=e.knownForFeature)||void 0===n||n.edges.forEach((function(e){var n,a,s,d,c,u,m,f,p,v,g,h,y,x,T,_,b,C,I,S,P,D,N,E,M,j,L,w,k,A,Z,O,R,B,Y,F,q,V,U=e.node.title,z=U.id,G=(0,r.L)(l,U.originalTitleText,U.titleText),H={canHaveEpisodes:null===(n=U.titleType)||void 0===n?void 0:n.canHaveEpisodes,id:null===(a=U.titleType)||void 0===a?void 0:a.id,text:null===(s=U.titleType)||void 0===s||null===(d=s.displayableProperty)||void 0===d||null===(c=d.value)||void 0===c?void 0:c.plainText},Q={caption:null===(u=U.primaryImage)||void 0===u||null===(m=u.caption)||void 0===m?void 0:m.plainText,height:null===(f=U.primaryImage)||void 0===f?void 0:f.height,url:null===(p=U.primaryImage)||void 0===p?void 0:p.url,width:null===(v=U.primaryImage)||void 0===v?void 0:v.width},$=null===(g=U.latestTrailer)||void 0===g?void 0:g.id,W=Boolean(null===(h=U.canRate)||void 0===h?void 0:h.isRatable),J=null===(y=U.ratingsSummary)||void 0===y?void 0:y.aggregateRating,K=null===(x=U.runtime)||void 0===x?void 0:x.seconds,X=null===(T=U.certificate)||void 0===T?void 0:T.rating,ee=null===(_=U.titleGenres)||void 0===_||null===(b=_.genres)||void 0===b?void 0:b.map((function(e){return e.genre.text})),ne=null===(C=e.node.summary)||void 0===C||null===(I=C.principalCategory)||void 0===I?void 0:I.text,te=(null!==(O=null===(S=e.node.summary)||void 0===S?void 0:S.principalCharacters)&&void 0!==O?O:[]).map((function(e){return e.name})),ie=(null!==(R=null===(P=e.node.summary)||void 0===P?void 0:P.principalJobs)&&void 0!==R?R:[]).map((function(e){return{id:e.id,label:e.text}})),ae=(0,o.A)((null!==(B=null===(D=e.node.summary)||void 0===D?void 0:D.attributes)&&void 0!==B?B:[]).map((function(e){return e.text})),ie);te.length||ie.length||ie.push({id:null===(Y=e.node.summary)||void 0===Y||null===(F=Y.principalCategory)||void 0===F?void 0:F.id,label:null===(q=e.node.summary)||void 0===q||null===(V=q.principalCategory)||void 0===V?void 0:V.text});var oe,re=null===(N=e.node.summary)||void 0===N||null===(E=N.yearRange)||void 0===E?void 0:E.endYear,le=null===(M=e.node.summary)||void 0===M||null===(j=M.yearRange)||void 0===j?void 0:j.year,se=null!==(oe=null===(L=e.node.summary)||void 0===L?void 0:L.episodeCount)&&void 0!==oe?oe:0,de=(0,i.f)(e.node.credit),ce={id:null===(w=e.node.summary)||void 0===w||null===(k=w.principalCategory)||void 0===k?void 0:k.id,label:null===(A=e.node.summary)||void 0===A||null===(Z=A.principalCategory)||void 0===Z?void 0:Z.text};t.push({attributes:ae,canRate:W,certificate:X,characters:te,creditCategory:ne,crewJobs:ie,endYear:re,episodeCreditsCount:se,genres:ee,jobCategory:ce,primaryImage:Q,rating:J,releaseYear:le,runtime:K,seasonOrYearEpisodeData:de,titleId:z,titleText:G,titleType:H,trailerId:$})})),t}},29506:function(e,n,t){"use strict";t.d(n,{B3:function(){return m},ER:function(){return l},Ev:function(){return i},Gt:function(){return u},Pf:function(){return r},TN:function(){return f},TY:function(){return p},Uk:function(){return s},Zc:function(){return v},bV:function(){return c},c1:function(){return d},kA:function(){return o},z7:function(){return a}});var i,a,o,r,l,s=30,d=250,c="accordion-content";!function(e){e.FilmographyContribution="nm_flmg_edt"}(i||(i={})),function(e){e.ChipFilters="nm_flmg_chips",e.FilmographySection="nm_flmg_sec",e.KnownFor="nm_flmg_kwn_for",e.SortMenu="nm_flmg_srt_menu",e.SortMenu_Date="nm_flmg_srt_d",e.SortMenu_Type="nm_flmg_srt_t"}(a||(a={})),function(e){e.PromptTrigger="credit-prompt-trigger"}(o||(o={})),function(e){e[e.All=0]="All",e[e.None=1]="None",e[e.Error=2]="Error"}(r||(r={})),function(e){e[e.Date=0]="Date",e[e.TitleType=1]="TitleType"}(l||(l={}));var u={director:"dr",writer:"wr",cast:"cl_t"},m="cr",f={director:"dr",writer:"wr",actress:"act",actor:"act",producer:"prd",composer:"com",cinematographer:"cin",editor:"edt",casting_director:"cldr",production_designer:"pdsg",art_director:"art",set_decorator:"set",costume_designer:"cos",make_up_department:"mkp",production_manager:"pmgr",assistant_director:"asst",art_department:"ardp",sound_department:"snd",special_effects:"spl",visual_effects:"vsl",stunts:"stn",choreographer:"msc",camera_department:"cam",animation_department:"anm",casting_department:"cldp",costume_department:"codp",editorial_department:"eddp",electrical_department:"cam",location_management:"loc",music_department:"msdp",production_department:"prdp",script_department:"scdp",transportation_department:"tpdp",miscellaneous:"msc",thanks:"tk",executive:"",legal:"",soundtrack:"sdtk",manager:"",assistant:"",talent_agent:"",self:"slf",publicist:"",archive_footage:"arf",archive_sound:"ars"},p={ALL:{id:"common_buttons_see_all",defaultMessage:"See all"},AS_CHARACTER:{id:"common_cast_characterName_with_as",defaultMessage:"as {characterName}"},BY_DATE:{id:"name_main_filmography_by_date",defaultMessage:"Year"},BY_KEYWORD:{id:"name_common_nameCreditsByKeyword_link",defaultMessage:"by Keyword"},BY_VOTES:{id:"name_common_nameCreditsByVotes_link",defaultMessage:"by Votes"},BY_RATING:{id:"name_common_nameCreditsByRating_link",defaultMessage:"by Rating"},BY_TYPE:{id:"name_main_filmography_by_type",defaultMessage:"Project type"},BY_TYPE_SUBTITLE:{id:"name_main_filmography_by_type_subtitle",defaultMessage:"Movie, TV, etc"},CLOSE:{id:"common_buttons_close",defaultMessage:"Close"},COLLAPSE_ALL:{id:"name_main_filmography_collapse_below",defaultMessage:"Collapse below"},CREDITS_EXCLUDED:{id:"name_main_filmography_credits_excluded",defaultMessage:"Credits excluded."},EPISODES_COUNT:{id:"common_cast_numEpisodes",defaultMessage:"{totalEpisodes, plural, one {{totalEpisodes} episode} other {{totalEpisodes} episodes}}"},ERROR_MESSAGE:{id:"name_main_filmography_error_message",defaultMessage:"Sorry, there was an error loading credits."},EXCLUDE:{id:"name_main_filmography_exclude",defaultMessage:"Exclude"},EXPAND_ALL:{id:"name_main_filmography_expand_below",defaultMessage:"Expand below"},FILTER:{id:"name_main_filmography_Filter",defaultMessage:"Filter"},INCLUDED_GENRES:{id:"name_main_filmography_included_genres",defaultMessage:"GENRES"},KNOWN_FOR_TITLE:{id:"name_main_known_for_title",defaultMessage:"Known for"},NO_JOBS_SELECTED:{id:"name_main_filmography_no_jobs_selected",defaultMessage:"You have no credit types selected"},PAGINATED_ERROR_MESSAGE:{id:"name_main_filmography_paginated_error",defaultMessage:"There was a problem. Please try again."},PREVIOUS_PROJECTS:{id:"name_main_filmography_previous_projects",defaultMessage:"Previous"},SEE_ALSO:{id:"name_main_filmography_see_also",defaultMessage:"SEE ALSO"},SEE_ALSO_SUBTITLE:{id:"name_main_filmography_see_also_subtitle",defaultMessage:"Advanced search results for {nameText}'s credits"},SEE_EPISODES_COUNT:{id:"name_main_filmography_see_num_episodes",defaultMessage:"See {totalEpisodes, plural, one {{totalEpisodes} ep} other {{totalEpisodes} eps}}"},SEE_MORE:{id:"credit_card_more",defaultMessage:"More"},SORT_BY:{id:"name_main_filmography_sort_by",defaultMessage:"SORT BY"},SORT:{id:"name_main_filmography_Sort",defaultMessage:"Sort"},SORT_AND_FILTER:{id:"name_main_filmography_SortAndFilter",defaultMessage:"Sort & Filter"},UPCOMING_PROJECTS:{id:"name_main_filmography_upcoming_projects",defaultMessage:"Upcoming"},UPDATE_FILTER_SELECTIONS:{id:"name_main_filmography_update_filter_selections",defaultMessage:"Update filter selections."},VIEW_ALL_CREDITS:{id:"name_main_filmography_view_all_credits",defaultMessage:"View all credits"}},v={C:void 0,T1:p.SORT,T2:p.FILTER,T3:p.SORT_AND_FILTER}},99105:function(e,n,t){"use strict";t.d(n,{L:function(){return o}});var i=t(52322),a=(t(2784),t(45103)),o=function(e){var n=e.text,t=e.href;return(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(a.TextLink,{text:n,href:t}),!t&&(0,i.jsx)("span",{children:n})]})}},91466:function(e,n,t){"use strict";t.d(n,{S:function(){return r},i:function(){return l}});var i=t(52322),a=(t(2784),t(99105));function o(e){var n,t,i=e.day,a=e.month,o=e.year,r=e.localizedBirthDate,l=e.birthLocationInEnglish,s=e.refTags,d=l?"/search/name/?birth_place=".concat(l,"&ref_=").concat(null===s||void 0===s?void 0:s.location):void 0,c=(null===r||void 0===r?void 0:r.split(","))||[],u=void 0,m=void 0;if(2===c.length)u=(null!==(n=c[0])&&void 0!==n?n:"").trim(),m=(null!==(t=c[1])&&void 0!==t?t:"").trim();else if(o){var f;m=(null!==(f=c[0])&&void 0!==f?f:"").trim()}else{var p;u=(null!==(p=c[0])&&void 0!==p?p:"").trim()}return{localizedMonthDay:u,monthDayLink:a&&i?"/search/name/?birth_monthday=".concat(a,"-").concat(i,"&refine=birth_monthday&ref_=").concat(null===s||void 0===s?void 0:s.monthDay):void 0,localizedYear:m,yearLink:o?"/search/name/?birth_year=".concat(o,"&ref_=").concat(null===s||void 0===s?void 0:s.year):void 0,birthLocationSearchLink:d}}function r(e){var n=e.day,t=e.month,r=e.year,l=e.localizedBirthDate,s=e.birthLocationInEnglish,d=e.localizedBirthLocation,c=o({day:n,month:t,year:r,localizedBirthDate:l,birthLocationInEnglish:s,refTags:e.refTags}),u=c.localizedMonthDay,m=c.monthDayLink,f=c.localizedYear,p=c.yearLink,v=c.birthLocationSearchLink,g=[];return(u||f)&&g.push((0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(a.L,{text:u,href:m}),u&&f&&(0,i.jsx)("span",{children:", "}),f&&(0,i.jsx)(a.L,{text:f,href:p})]})),d&&g.push({text:d,href:v}),g}function l(e){var n=e.day,t=e.month,i=e.year,a=e.localizedBirthDate,r=e.birthLocationInEnglish,l=e.localizedBirthLocation,s=o({day:n,month:t,year:i,localizedBirthDate:a,birthLocationInEnglish:r,refTags:e.refTags}),d=s.localizedMonthDay,c=s.monthDayLink,u=s.localizedYear,m=s.yearLink,f=s.birthLocationSearchLink;return"".concat(d?'').concat(d,""):"").concat(d&&u?", ":"").concat(u?'').concat(u,""):"").concat((d||u)&&l?" \xb7 ":"").concat(l?'').concat(l,""):"")}},22540:function(e,n,t){"use strict";t.d(n,{I:function(){return r},V:function(){return l}});var i=t(52322),a=(t(2784),t(99105));function o(e){var n,t,i=e.day,a=e.month,o=e.year,r=e.localizedDeathDate,l=e.deathLocationInEnglish,s=e.localizedDeathLocation,d=e.refTags,c=l&&s?"/search/name/?death_place=".concat(l,"&ref_=").concat(null===d||void 0===d?void 0:d.location):void 0,u=(null===r||void 0===r?void 0:r.split(","))||[],m=void 0,f=void 0;if(2===u.length)m=(null!==(n=u[0])&&void 0!==n?n:"").trim(),f=(null!==(t=u[1])&&void 0!==t?t:"").trim();else if(o){var p;f=(null!==(p=u[0])&&void 0!==p?p:"").trim()}else{var v;m=(null!==(v=u[0])&&void 0!==v?v:"").trim()}return{localizedMonthDay:m,yearMonthDayLink:o&&a&&i?"/search/name/?death_date=".concat(o,"-").concat(a,"-").concat(i,"&refine=death_monthday&ref_=").concat(null===d||void 0===d?void 0:d.monthDay):void 0,localizedYear:f,yearLink:o?"/search/name/?death_date=".concat(o,"&ref_=").concat(null===d||void 0===d?void 0:d.year):void 0,deathLocationSearchLink:c}}function r(e){var n=e.day,t=e.month,r=e.year,l=e.localizedDeathDate,s=e.deathLocationInEnglish,d=e.localizedDeathLocation,c=e.deathCause,u=o({day:n,month:t,year:r,localizedDeathDate:l,deathLocationInEnglish:s,localizedDeathLocation:d,refTags:e.refTags}),m=u.localizedMonthDay,f=u.yearMonthDayLink,p=u.localizedYear,v=u.yearLink,g=u.deathLocationSearchLink,h=[];return(m||p)&&h.push((0,i.jsxs)(i.Fragment,{children:[m&&(0,i.jsx)(a.L,{text:m,href:f}),m&&p&&(0,i.jsx)("span",{children:", "}),p&&(0,i.jsx)(a.L,{text:p,href:v})]})),d&&h.push({text:d,href:g,subText:c?"(".concat(c,")"):void 0}),h}function l(e){var n=e.day,t=e.month,i=e.year,a=e.localizedDeathDate,r=e.deathLocationInEnglish,l=e.localizedDeathLocation,s=e.deathCause,d=o({day:n,month:t,year:i,localizedDeathDate:a,deathLocationInEnglish:r,localizedDeathLocation:l,refTags:e.refTags}),c=d.localizedMonthDay,u=d.yearMonthDayLink,m=d.localizedYear,f=d.yearLink,p=d.deathLocationSearchLink;return"".concat(c?'').concat(c,""):"").concat(c&&m?", ":"").concat(m?'').concat(m,""):"").concat((c||m)&&l?" \xb7 ":"").concat(l?'').concat(l,""):"").concat(s&&(l||c||m)?" ":"").concat(s?"(".concat(s,")"):"")}},33335:function(e,n,t){"use strict";t.d(n,{w:function(){return r}});var i=t(92228),a=t(30382);function o(){var e=(0,i.Z)(["\n fragment CreditMetaData on Credit {\n attributes {\n text\n }\n category {\n id\n text\n }\n ... on Cast {\n characters {\n name\n }\n episodeCredits(first: 0) {\n total\n yearRange {\n year\n endYear\n }\n displayableYears(first: 1) {\n total\n edges {\n node {\n year\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n displayableSeasons(first: 1) {\n total\n edges {\n node {\n season\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n }\n }\n ... on Crew {\n jobs {\n id\n text\n }\n episodeCredits(first: 0) {\n total\n yearRange {\n year\n endYear\n }\n displayableYears(first: 1) {\n total\n edges {\n node {\n year\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n displayableSeasons(first: 1) {\n total\n edges {\n node {\n season\n displayableProperty {\n value {\n plainText\n }\n }\n }\n }\n }\n }\n }\n }\n"]);return o=function(){return e},e}var r=t.n(a)()(o())},52504:function(e,n,t){"use strict";t.d(n,{P:function(){return d}});var i=t(2784),a=t(45103),o=t(31619),r=t(6488),l=t(98621),s="sxdshidesnack",d=function(e){var n=(0,o.N)({id:"homepage_six_degrees_snack_msg",defaultMessage:"Try IMDb's new daily game Six Degrees."}),t=(0,o.N)({id:"homepage_six_degrees_snack_link",defaultMessage:"Play now"}),d=(0,l.hg)({weblabID:e,treatments:{T1:!0}}),c=(0,a.useSnackbar)().sendSnack,u=(0,r.ID)(s);(0,i.useEffect)((function(){d&&!u&&c({type:"manual",primaryText:n,textLinks:[{text:t,href:"/games/six-degrees/?ref_=hm_snk_gm_sxd",onClick:function(){return(0,r._2)(s,!0)}}],closeLabel:"Close",onClose:function(){return(0,r._2)(s,!0)}})}),[])}}},function(e){e.O(0,[9774,8199,5139,2277,482,306,5211,8520,9112,8597,2050,8136,5959,128,1665,8702,7633,8510,288,385,5362,8707,6741,8303,7030,7978,8564,2888,179],(function(){return n=80750,e(e.s=n);var n}));var n=e.O();_N_E=n}]);